MavEtJu's Distorted View of the World

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.

| Share on Facebook | Share on Twitter
From: Nik
Posted on: 2008-10-05 12:45:50
CommentThanks very much for posting this solution Edwin. I'm so glad I found it having been swapping between PGT (Port Morseby) and SBT (Guadalcanal) for the past couple of daylight savings transitions for my server located in Sydney.

P.S. your "Back to the main page" URL points to

which produces a 404.


Leave a comment
Back to the main page