MavEtJu's Distorted View of the World - Plone

Zope, Plone and Australian Timezones

Back to index

Zope, Plone and Australian Timezones

Posted on 2006-07-30 19:30:06, modified on 2006-07-30 19:39:55
Tags: Broken software, Zope, Plone, Python

I don't know if it is Zopes problem, I don't know if it is Plones problem, but I do know that it was my problem. The problem description was simple: When entering events in plone, the time always jumped back about 10 or 12 hours. Editing these events made it jump back further...

The problem at the end was related to the way the functions in interpret the EST returned as the timezone. For example, this is the output of date(1):

[~] edwin@k7>TZ=Australia/Sydney date
Sun Jul 30 19:33:36 EST 2006
[~] edwin@k7>TZ=EST date
Sun Jul 30 04:33:30 EST 2006

So despite that the date function returns the Australian EST, the timezone EST reverts back to the US version.

And now the gory details on how to resolve this: Search for the file (/usr/local/www/Zope/lib/python/DateTime/ on my machine), search for the definition of the array _zmap and in there, search of the keypair 'est':'US/Eastern'. Replace the est at the beginning to something else (I made it eest), then restart the Zope daemon et voila.

Show comment | Share on Facebook | Share on Twitter