[Zope-Checkins] CVS: Packages/DateTime/tests -
testDateTime.py:1.21.12.4
Martijn Pieters
mj at zopatista.com
Fri Jun 25 11:43:07 EDT 2004
Update of /cvs-repository/Packages/DateTime/tests
In directory cvs.zope.org:/tmp/cvs-serv27600/lib/python/DateTime/tests
Modified Files:
Tag: Zope-2_7-branch
testDateTime.py
Log Message:
Collector #1386: Fixed ISO 1386 parsing, making the colon in the timezone
offset optional.
=== Packages/DateTime/tests/testDateTime.py 1.21.12.3 => 1.21.12.4 ===
--- Packages/DateTime/tests/testDateTime.py:1.21.12.3 Thu Jan 1 13:01:57 2004
+++ Packages/DateTime/tests/testDateTime.py Fri Jun 25 11:43:06 2004
@@ -259,6 +259,10 @@
isoDt = DateTime('2002-05-02T08:00:00-04:00')
self.assertEqual( ref1, isoDt)
+ # Bug 1386: the colon in the timezone offset is optional
+ isoDt = DateTime('2002-05-02T08:00:00-0400')
+ self.assertEqual( ref1, isoDt)
+
dgood = '2002-05-02'
tgood = 'T08:00:00-04:00'
for dbad in '2002-5-2', '2002-10-2', '2002-2-10', '02-2-10':
More information about the Zope-Checkins
mailing list