[ZCM] [ZC] 1552/ 2 Comment "timezone map is wrong"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Sat Oct 30 02:51:07 EDT 2004
Issue #1552 Update (Comment) "timezone map is wrong"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/1552
==============================================================
= Comment - Entry #2 by ajung on Oct 30, 2004 2:51 am
Can you provide a patch?
________________________________________
= Request - Entry #1 by panjunyong on Oct 25, 2004 8:38 pm
The problem is d.toZone(d.timezone()) is not the same to d:
>>> d = DateTime
>>> d
DateTime('2004/10/26 08:20:20.410 GMT-8')
>>> d.toZone(d.timezone())
DateTime('2004/10/25 16:20:20.410 GMT-8')
This is because GMT-8 means the GMT +0800 timezone, but not GMT -0800 timezone under linux. But DateTime module difines GMT+8 means the GMT +0800 timezone.
You can use date command under linux:
# date -u
Tue Oct 26 00:31:32 UTC 2004
# date
Tue Oct 26 08:31:25 GMT-8 2004
==============================================================
More information about the Zope-Collector-Monitor
mailing list