continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r586705 - in /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web: util/WorkingCopyContentGenerator.java view/commons/DateCell.java
Date Sat, 20 Oct 2007 12:25:15 GMT
Author: evenisse
Date: Sat Oct 20 05:25:14 2007
New Revision: 586705

URL: http://svn.apache.org/viewvc?rev=586705&view=rev
Log:
Use the same date format in all places

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/WorkingCopyContentGenerator.java
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/commons/DateCell.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/WorkingCopyContentGenerator.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/WorkingCopyContentGenerator.java?rev=586705&r1=586704&r2=586705&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/WorkingCopyContentGenerator.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/util/WorkingCopyContentGenerator.java
Sat Oct 20 05:25:14 2007
@@ -154,7 +154,7 @@
         Calendar cal = Calendar.getInstance();
         cal.setTimeInMillis( timestamp );
         Date date = cal.getTime();
-        String res = new SimpleDateFormat( "dd-MMM-yyyy, K:mm a, z" ).format( date );
+        String res = new SimpleDateFormat( "MMM dd, yyyy hh:mm:ss aaa z" ).format( date );
         return StringUtils.replace( res, " ", " " );
     }
 

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/commons/DateCell.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/commons/DateCell.java?rev=586705&r1=586704&r2=586705&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/commons/DateCell.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/commons/DateCell.java
Sat Oct 20 05:25:14 2007
@@ -19,7 +19,6 @@
  * under the License.
  */
 
-import org.apache.commons.lang.time.DateFormatUtils;
 import org.codehaus.plexus.util.StringUtils;
 import org.extremecomponents.table.bean.Column;
 import org.extremecomponents.table.cell.DisplayCell;
@@ -61,7 +60,7 @@
 
             if ( StringUtils.isEmpty( format ) )
             {
-                format = DateFormatUtils.SMTP_DATETIME_FORMAT.getPattern();
+                format = "MMM dd, yyyy hh:mm:ss aaa z";
             }
 
             value = ExtremeUtils.formatDate( column.getParse(), format, value, locale );



Mime
View raw message