Eric,
Ok I'm guessing you are in UTC mode hence 10 hour offset. Here are
some tests to run in python. We use Zope's DateTime module for dates
in zope code (Dashboard uses JavaScript DateTime in browser so it has
no relation).
In python console
>>> import time
>>> time.timezone
18000
>>> from DateTime import DateTime
>>> DateTime()
DateTime('2006/06/07 08:16:32.301 GMT-4')
>>> import os
>>> os.environ['TZ'] = 'Australia/Melbourne'
>>> time.tzset()
>>> time.timezone
-36000
>>> DateTime()
DateTime('2006/06/07 22:21:28.855 US/Eastern')
Notice time is correct but timezone printout for DateTime is totally
bogus. Also you need to use path to your timezone info file for TZ
(other formats like CST are ambiguous and DateTime takes a US centric
method for resolution of the ambiguity). You can find the path to
this file by looking in /usr/share/zoneinfo (on my FC5 box anyway).
Once you have a TZ that is giving correct DateTime output zope should
be good to go. Don't forget to export the TZ variable and it might
be worth putting in env_keep in /etc/sudoers.
-EAD
On Jun 7, 2006, at 12:34 AM, Eric Belcher wrote:
Hi,
Subsequent to my last post, my event times are still out. I'm now
certain ZOPE is running the correct time zone. Under the /
Control_Panel/DebugInfo page the time now displayed is the correct
local time.
ZENOSS, however, still displays events hours out.
One two browser side by side, one showing the Dashboard, the other
showing the 'edit' page of a device the following is shown. The
actual local time is 2:27pm. Reading the pages at one time,
The dashboard time is correct,
Last Updated: 2006-06-07 14:27:13
The device state on a device is incorrect.
Device State at time: 2006/06/07 00:27:13
This puts it at 14 hours out, which doesn't make sense. Can anyone
shine any light on this?
Thanks
Eric.
Eric Belcher
Manager - Technology Services
Anglican Church Grammar School
Oaklands Parade, East Brisbane
[EMAIL PROTECTED]
Phone 617 3896 2186
Fax 617 3891 5976
>> [EMAIL PROTECTED] 25/05/2006 10:50:08 am >>>
Thanks
For others who might not know zope as I don't yet, here is how you
do it.
If your Zope version is 2.7.x or above, try putting export TZ=X
near the top of the runzope script for your Zope instance
(INSTANCE_HOME/bin), where X is the desired timezone, for example
GMT. Restart your Zope to make the change effective.
Regards
Eric.
Eric Belcher
Manager - Technology Services
Anglican Church Grammar School
Oaklands Parade, East Brisbane
[EMAIL PROTECTED]
Phone 617 3896 2186
Fax 617 3891 5976
>>> [EMAIL PROTECTED] 24/05/2006 11:23 pm >>>
Eric,
Zope is in the wrong time zone. Set TZ properly in your environement
before you start Zope.
-EAD
On May 23, 2006, at 9:51 PM, Eric Belcher wrote:
> Hi,
>
> Still getting my head around ZENOSS. It appears that the times for
> the events are 10 hours out. For example, an event that happened
> 23rd-May-2006 11:35 am is reported by zenoss as 2006/05/23
> 21:35:07.804
>
> In Queensland Australia we are + 10 houts on GMT. My linux server
> is running the correct time. Is there some setting I can make to
> correct the time displays?
>
> Thanks
> Eric.
> ;
> Eric Belcher
> Manager - Technology Services
> Anglican Church Grammar School
> Oaklands Parade, East Brisbane
> [EMAIL PROTECTED]
> Phone 617 3896 2186
> Fax 617 3891 5976
> Disclaimer
>
> This email is intended for the use of the named individual or
> entity and may contain confidential and privileged information. Any
> dissemination distribution or copying by anyone other than the
> intended recipient of this email is strictly prohibited. If this
> email has been received in error, please send an email in response,
> or telephone us immediately on +61 7 38962200, and destroy the
> original message. Any views expressed in this message are those of
> the individual sender, except where the sender specifically states
> them to be the views of the Corporation of the Synod of the Diocese
> ; of Brisbane or
Disclaimer
This email is intended for the use of the named individual or
entity and may contain confidential and privileged information. Any
dissemination distribution or copying by anyone other than the
intended recipient of this email is strictly prohibited. If this
email has been received in error, please send an email in response,
or telephone us immediately on +61 7 38962200, and destroy the
original message. Any views expressed in this message are those of
the individual sender, except where the sender specifically states
them to be the views of the Corporation of the Synod of the Diocese
of Brisbane or Churchie.
Disclaimer
This email is intended for the use of the named individual or
entity and may contain confidential and privileged information. Any
dissemination distribution or copying by anyone other than the
intended recipient of this email is strictly prohibited. If this
email has been received in error, please send an email in response,
or telephone us immediately on +61 7 38962200, and destroy the
original message. Any views expressed in this message are those of
the individual sender, except where the sender specifically states
them to be the views of the Corporation of the Synod of the Diocese
of Brisbane or Churchie.
_______________________________________________
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