[Zope-Checkins] CVS: Zope2 - DateTime.py:1.59.16.2
Brian Lloyd
brian@digiciool.com
Mon, 12 Mar 2001 09:50:44 -0500 (EST)
Update of /cvs-repository/Zope2/lib/python/DateTime
In directory korak:/home/brian/temp/zope-23-branch/lib/python/DateTime
Modified Files:
Tag: zope-2_3-branch
DateTime.py
Log Message:
Fixed bug 2040: handle out-of-range dates with exception
--- Updated File DateTime.py in package Zope2 --
--- DateTime.py 2001/02/12 19:04:56 1.59.16.1
+++ DateTime.py 2001/03/12 14:50:43 1.59.16.2
@@ -1392,7 +1392,7 @@
format = ts_regex.gsub('\(^\|[^%]\)%z',
'\\1%+05d' % (diff / 36),
format)
- return strftime(format, gmtime(self.timeTime() + diff))
+ return strftime(format, safegmtime(self.timeTime() + diff))
# General formats from previous DateTime
def Date(self):