[ZCM] [ZC] 1552/ 1 Request "timezone map is wrong"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Oct 25 20:38:02 EDT 2004


Issue #1552 Update (Request) "timezone map is wrong"
 Status Pending, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1552

==============================================================
= 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