[mrtg] Re: Timezone query
Gisle Vanem
giva at bgnett.no
Tue Mar 30 14:10:15 MEST 2004
"Dave Whitehead" <Dave.Whitehead at halliburton.com> said:
> We are in London and since Saturday when we changed to GMT+1 all my
> graphs have the wrong time displayed (1hr slow) using option PNGDATE. I
> tried putting GMT+1 in the .CFG file (Timezone[xxx]: GMT+1) - but all
> that did was put the text "GMT+1" in the graph.
>
> The server that MRTG is running on shows the correct time/date and
> timeszone (inc daylight saving) so I am at a bit of aloss to know why
> MRTG isnt picking it up.
I had the same problem on Win-XP. Fixed by changing the env-var TZ
from GMT-1 to GMT-2 and restarting MRTG daemon.
Seems the Perl I use (ActiveState perl) doesn't detect DST changes in
the localtime function or doesn't detect changes in $ENV{'TZ'} once the
program is running.
--gv
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list