Author: fmui
Date: Fri Jul 17 13:59:07 2015
New Revision: 1691563

URL: http://svn.apache.org/r1691563
Log:
CMIS-928: fixed date format in AtomPub response

Modified:
    
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomDocumentBase.java

Modified: 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomDocumentBase.java
URL: 
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomDocumentBase.java?rev=1691563&r1=1691562&r2=1691563&view=diff
==============================================================================
--- 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomDocumentBase.java
 (original)
+++ 
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AtomDocumentBase.java
 Fri Jul 17 13:59:07 2015
@@ -87,7 +87,7 @@ public abstract class AtomDocumentBase e
      * Writes an Atom updated tag.
      */
     public void writeUpdated(long updated) throws XMLStreamException {
-        String updatedStr = DateTimeHelper.formatHttpDateTime(updated);
+        String updatedStr = DateTimeHelper.formatXmlDateTime(updated);
         XMLUtils.write(getWriter(), XMLConstants.PREFIX_APP, 
XMLConstants.NAMESPACE_APP, "edited", updatedStr);
         XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, 
XMLConstants.NAMESPACE_ATOM, "updated", updatedStr);
     }
@@ -104,7 +104,7 @@ public abstract class AtomDocumentBase e
      */
     public void writePublished(long published) throws XMLStreamException {
         XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, 
XMLConstants.NAMESPACE_ATOM, "published",
-                DateTimeHelper.formatHttpDateTime(published));
+                DateTimeHelper.formatXmlDateTime(published));
     }
 
     /**


Reply via email to