xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r619458 - /xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/xmp/DateFormattingTest.java
Date Thu, 07 Feb 2008 15:36:50 GMT
Author: jeremias
Date: Thu Feb  7 07:36:48 2008
New Revision: 619458

URL: http://svn.apache.org/viewvc?rev=619458&view=rev
Log:
Just making sure that special time zones work, too.

Modified:
    xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/xmp/DateFormattingTest.java

Modified: xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/xmp/DateFormattingTest.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/xmp/DateFormattingTest.java?rev=619458&r1=619457&r2=619458&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/xmp/DateFormattingTest.java
(original)
+++ xmlgraphics/commons/trunk/test/java/org/apache/xmlgraphics/xmp/DateFormattingTest.java
Thu Feb  7 07:36:48 2008
@@ -49,6 +49,10 @@
         assertEquals("2008-02-07T17:11:07+02:00", s);
         assertEquals(dt, XMPSchemaAdapter.parseISO8601Date(s));
 
+        s = XMPSchemaAdapter.formatISO8601Date(dt, TimeZone.getTimeZone("GMT+02:30"));
+        assertEquals("2008-02-07T17:41:07+02:30", s);
+        assertEquals(dt, XMPSchemaAdapter.parseISO8601Date(s));
+
         s = XMPSchemaAdapter.formatISO8601Date(dt, TimeZone.getTimeZone("GMT-08:00"));
         assertEquals("2008-02-07T07:11:07-08:00", s);
         assertEquals(dt, XMPSchemaAdapter.parseISO8601Date(s));



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message