Sven,
UTC-2, I believe means, "2 hours earlier than UTC". For example:
$ TZ=UTC-2 date; TZ=UTC date ; TZ=UTC+2 date
Sat Jun 24 01:12:39 UTC 2006
Fri Jun 23 23:12:39 UTC 2006
Fri Jun 23 21:12:39 UTC 2006
Clearly UTC-2 is "earlier" or "gets sunrise first".
-Eric
Schuran, Sven wrote:
Hi,
But why I have to set it to UTC-2, I am from Germany so timezone is CEST UTC+2
during summer
and UTC+1 during winter.
The Linux System time is correct at CEST time.
Seems to be Zenoss is not able to handle the Daylight saving.
Thanks Sven
-----Ursprüngliche Nachricht-----
Von: Eric Newton [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 18. Juni 2006 16:52
An: General discussion of using zenoss system
Betreff: Re: AW: [zenoss-users] Timezone settings
I forgot to mention the TZ setting should go in the $ZENHOME/bin/zopectl script.
-Eric
Eric Newton wrote:
You could change it for your whole machine using whatever mechanism
your OS provides. On fedora, you can use system-config-date.
Alternatively you can set it for Zope:
Add
export TZ=UTC-2
Before the "exec" line.
-Eric
Schuran, Sven wrote:
Hi,
Wer I have to add TZ.
Sven
-----Ursprüngliche Nachricht-----
Von: Eric Newton [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 17.
Juni 2006 16:10
An: General discussion of using zenoss system
Betreff: Re: [zenoss-users] Timezone settings
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