[Zope-Checkins] CVS: Zope/lib/python/DateTime - DateTime.py:1.79.6.7
Christian Theune
ct at gocept.com
Sat Jan 10 10:20:19 EST 2004
Update of /cvs-repository/Zope/lib/python/DateTime
In directory cvs.zope.org:/tmp/cvs-serv12874/lib/python/DateTime
Modified Files:
Tag: Zope-2_6-branch
DateTime.py
Log Message:
- a unittest that reproduce bug #1169. it's currently breaking, hope this is fine
to checkin for debugging for tres.
=== Zope/lib/python/DateTime/DateTime.py 1.79.6.6 => 1.79.6.7 ===
--- Zope/lib/python/DateTime/DateTime.py:1.79.6.6 Thu Jan 16 11:53:19 2003
+++ Zope/lib/python/DateTime/DateTime.py Sat Jan 10 10:19:48 2004
@@ -652,7 +652,7 @@
elif type(arg) in [StringType,UnicodeType]:
# Date/time string
- if arg.find(' ')==-1 and arg[4]=='-':
+ if arg.find(' ')==-1 and len(arg) > 4 and arg[4]=='-':
yr,mo,dy,hr,mn,sc,tz=self._parse_iso8601(arg)
else:
yr,mo,dy,hr,mn,sc,tz=self._parse(arg)
More information about the Zope-Checkins
mailing list