chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmpas...@apache.org
Subject svn commit: r1392884 - /chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
Date Tue, 02 Oct 2012 12:22:08 GMT
Author: jmpascal
Date: Tue Oct  2 12:22:08 2012
New Revision: 1392884

URL: http://svn.apache.org/viewvc?rev=1392884&view=rev
Log:
Change Date string value from millis to "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" 

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java?rev=1392884&r1=1392883&r2=1392884&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/AtomEntryWriter.java
Tue Oct  2 12:22:08 2012
@@ -77,6 +77,8 @@ public class AtomEntryWriter {
     private final ObjectData object;
     private final InputStream stream;
     private final String mediaType;
+    
+    private final static SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
 
     /**
      * Constructor.
@@ -320,7 +322,7 @@ public class AtomEntryWriter {
         }
 
         if (value instanceof GregorianCalendar) {
-            return "" + ((GregorianCalendar) value).getTimeInMillis();
+            return dateFormatter.format(((GregorianCalendar) value).getTime());
         }
 
         return value.toString();



Mime
View raw message