You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by kn...@apache.org on 2011/09/14 19:35:03 UTC

svn commit: r1170728 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/TimeDV.java

Author: knoaman
Date: Wed Sep 14 17:35:03 2011
New Revision: 1170728

URL: http://svn.apache.org/viewvc?rev=1170728&view=rev
Log:
Implement changes to xs:time values - Jira issue 1530
(https://issues.apache.org/jira/browse/XERCESJ-1530)

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/TimeDV.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/TimeDV.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/TimeDV.java?rev=1170728&r1=1170727&r2=1170728&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/TimeDV.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/xs/TimeDV.java Wed Sep 14 17:35:03 2011
@@ -72,13 +72,18 @@ public class TimeDV extends AbstractDate
         //validate and normalize
 
         validateDateTime(date, isXMLSchema11);
+        
+        // reset back day
+        date.day = 15;
 
         //save unnormalized values
         saveUnnormalized(date);
         
         if ( date.utc!=0 && date.utc != 'Z') {
             normalize(date);
-            date.day = 15;
+            if (!isXMLSchema11) {
+                date.day = 15;
+            }
         }
         date.position = 2;
         return date;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org