[Zope-dev] Possible DateTime timezone-related regression in Zope 2.12
Martin Aspeli
optilude+lists at gmail.com
Sun Jan 10 06:07:29 EST 2010
Wichert Akkerman wrote:
> On 2010-1-10 04:36, Martin Aspeli wrote:
>> so in your test, `DateTime(md.CreationDate())` will always be the
>> current time, but with an implicitly added 'GMT+0' while `DateTime()`
>> will be the current time in your local time zone. so if i'm not
>> mistaken, on plone 4.0 the test with fail for you an me (in 'GMT+x' time
>> zones) and pass in the u.s. fun! :)
>>
>> Does anyone know if this change was deliberate, or what may have happened?
>
> Have you looked at
> http://zope3.pov.lt/trac/log/Zope/trunk/lib/python/DateTime?rev=95999
> for hints?
Yes, there are various timezone related changes, e.g.
http://zope3.pov.lt/trac/changeset/81213/Zope/trunk/lib/python/DateTime
http://zope3.pov.lt/trac/changeset/85830/Zope/trunk/lib/python/DateTime
It's hard to know whether this was an intended change or not, and if so,
how to deal with the breakage in a way that's compatible with 2.10 and 2.12.
I blame Laurence. :-p
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
More information about the Zope-Dev
mailing list