[zope2-tracker] [Bug 583324] [NEW] DateTime uses GMT rather than local time zone

dmaurer dieter at handshake.de
Thu May 20 09:25:19 EDT 2010


Public bug reported:

I understand the "DateTime" documentation as follows: if it gets a
single string argument without time zope specification, it creates a
"DateTime" in the local time zone. However:

>>> import DateTime
>>> DateTime.__file__
'/home/dieter/Z/zpython/lib/python2.6/site-packages/DateTime-2.12.2-py2.6.egg/DateTime/__init__.pyc'
>>> DateTime.DateTime('2010-05-20').timezone()
'GMT+0'
>>> DateTime.DateTime('2010/05/20').timezone()
'GMT+2'

Formerly (at least in the "DateTime" version that came with Zope 2.8),
"DateTime('2010-05-20)", too, has returned a "DateTime" in the local
time zone.

** Affects: datetime
     Importance: Undecided
         Status: New


** Tags: 2.12.2 datetime

** Project changed: acquisition => datetime

-- 
DateTime uses GMT rather than local time zone
https://bugs.launchpad.net/bugs/583324
You received this bug notification because you are a member of Zope 2
Developers, which is the registrant for DateTime.


More information about the zope2-tracker mailing list