Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01B40DBC3 for ; Tue, 2 Oct 2012 12:23:04 +0000 (UTC) Received: (qmail 15213 invoked by uid 500); 2 Oct 2012 12:23:03 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 15037 invoked by uid 500); 2 Oct 2012 12:22:57 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 14984 invoked by uid 99); 2 Oct 2012 12:22:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 12:22:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 12:22:52 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CFB52238896F; Tue, 2 Oct 2012 12:22:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@chemistry.apache.org From: jmpascal@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121002122208.CFB52238896F@eris.apache.org> 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();