FW: [Zope] Zope Time Problem

Mohan Baro mcbaro@uwimona.edu.jm
Wed, 4 Apr 2001 22:21:54 -0500


I give up.

Here is what I have done to fix the problem for now.

I have used

<dtml-var "ZopeTime().toZone('GMT-5').strftime('%H:%M')">
Instead of
<dtml-var "ZopeTime().toZone('Jamaica').strftime('%H:%M')">

I feel that Zope's DateTimeZone.py might have 'Jamaica' in the wrong time
zone or daylight saving ???


Mohan.



-----Original Message-----
From: Mohan Baro [mailto:mcbaro@uwimona.edu.jm]
Sent: Wednesday, April 04, 2001 10:09 PM
To: tim@freepm.org; zope@zope.org
Subject: RE: [Zope] Zope Time Problem


Here is what I found out.

Aparently Jamaica is not timezone for Windows 2000 Server, so the server
has -5:00 GMT/US/Eastern(No Daylight Savings Time)

<dtml-var "ZopeTime()">   gives me 2001/04/04 21:00:00.765 US/Eastern

<dtml-var "ZopeTime().strftime('%H:%M')">  gives me say 22:00

<dtml-var "ZopeTime().toZone('Jamaica').strftime('%H:%M')"> also gives me
22:00

In my forms I use the .strftime() function.

Any idea what's happening here.
Why does using .strftime() give an extra hour??


Mohan.



-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tim
Cook
Sent: Tuesday, April 03, 2001 10:52 PM
To: Mohan Baro; zope@zope.org
Subject: Re: [Zope] Zope Time Problem


Mohan Baro wrote:
>
> Hi all,
>
> Zope time is wrong, it is (1)one hour ahead of (Windows 2000) Server time.
> Windows time is correct and daylight savings is unchecked.
>
> Jamaica is (GMT -5).
>
> How do I correct ZopeTime????
>
> Mohan.

You might check /lib/python/DateTime/DateTime.py  The TZ, cdt was
set to GMT-2 and when we went to DST in the US/Central TZ many of
us lost a couple of hours. <s>

Maybe that was 'supposed' to be another TZ??? But it was detected
as US Central Daylight Time.

HTH,
--
Tim Cook, President - FreePM,Inc.
http://www.FreePM.com Office: (901) 884-4126
ONLINE DEMO: http://www.freepm.org:8080/FreePM

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )