From 31fb8ae3bfea0555ba83c8873f872c63c0458564 Mon Sep 17 00:00:00 2001
From: Gareth Reakes <gareth@apache.org>
Date: Thu, 15 May 2003 16:32:19 +0000
Subject: [PATCH] We did not allow dateTimes with a timezone due to the last
 seconds fix.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174978 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/util/XMLDateTime.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/xercesc/util/XMLDateTime.cpp b/src/xercesc/util/XMLDateTime.cpp
index 6ef7e7f81..4c3ea46ff 100644
--- a/src/xercesc/util/XMLDateTime.cpp
+++ b/src/xercesc/util/XMLDateTime.cpp
@@ -57,6 +57,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.9  2003/05/15 16:32:19  gareth
+ * We did not allow dateTimes with a timezone due to the last seconds fix.
+ *
  * Revision 1.8  2003/03/23 22:54:49  peiyongz
  * invalid second values
  *
@@ -1047,7 +1050,7 @@ void XMLDateTime::getTime()
             fValue[MiliSecond] = parseInt(fStart, sign);  //get ms between UTC sign and fEnd
         }
 	}
-    else
+    else if(sign == 0 || sign != fStart)
     {
         // seconds has more than 2 digits
         ThrowXML1(SchemaDateTimeException
-- 
GitLab