Sven,

Ugh!  This is so frustrating!

Python isn't interpreting your timezone correctly. Europe/Berlin should set the time.timezone value to -7200. I don't know why it doesn't.

Here is a case of DateTime getting it right. But DateTime gets Australia/Brisbane confused, and time.timezone gets it right.

        $ TZ=Europe/Berlin python -c 'import time; print time.timezone'
        -3600
        $ TZ=GMT-2 python -c 'import time; print time.timezone'
        -7200

For now, try setting your timezeone to GMT-2.

-Eric

Schuran, Sven wrote:
Hi,

My Events are all 1 hour earlier.

So I tried this
Python 2.3.5 (#1, May 24 2006, 18:46:23)
[GCC 4.1.0 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import time
time.timezone
-3600
from DateTime import DateTime
DateTime()
DateTime('2006/06/16 16:06:05.142 GMT+2')
import os
os.environ['TZ']='Europe/Berlin'
time.tzse()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'tzse'
time.tzset()
time.timezone
-3600
DateTime()
DateTime('2006/06/16 16:07:50.290 GMT+2')

Seems to work.
I put TZ=Europe/Berlin to .bashrc and restarted zenoss, but time is 1
hour off.

Thanks Sven
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to