[zope2-tracker] [Bug 143434] Re: DateTime doesn't work for Indiana
Tres Seaver
tseaver at palladion.com
Thu Apr 15 12:00:17 EDT 2010
Released versions of the DateTIme package use the pytz timezones::
>>> import pkg_resources
>>> pkg_resources.require('DateTime')[0].version
'2.12.1dev'
>>> from DateTime.DateTime import DateTime
>>> dt = DateTime(2010, 4, 15, 7, 0, 0, 'America/Indiana/Indianapolis')
>>> dt
DateTime('2010/04/15 07:00:00 America/Indiana/Indianapolis')
Note that there is no such thing as an 'America/Indiana' timezone. ;) ::
>>> import pytz
>>> pytz.timezone('America/Indiana')
Traceback (most recent call last):
File ".../eggs/pytz-2010g-py2.6.egg/pytz/__init__.py", line 157, in timezone
raise UnknownTimeZoneError(zone)
UnknownTimeZoneError: 'America/Indiana'
>>> pytz.timezone('America/Indiana/Indianapolis')
<DstTzInfo 'America/Indiana/Indianapolis' CST-1 day, 18:00:00 STD>
** Changed in: zope2
Status: Confirmed => Fix Released
--
DateTime doesn't work for Indiana
https://bugs.launchpad.net/bugs/143434
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
More information about the zope2-tracker
mailing list