DateTime uses GMT rather than local time zone

Bug #583324 reported by Dieter Maurer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DateTime
Confirmed
Undecided
Unassigned

Bug Description

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.

Dieter Maurer (d.maurer)
affects: acquisition → datetime
Changed in datetime:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.