[rrd-users] Re: --set-tz patch for rrdtool graph

Tobias Oetiker oetiker at ee.ethz.ch
Sun Mar 11 09:28:12 MET 2001

Yesterday Jason Fesler wrote:

 | > can you elaborate on why it should make a differenze if you set the
 | > TZ environemnt variable in perl or in a shared library loaded into
 | > perl ...
 | I wish I could.  The observed behavior, in a mod_perl application,
 | where I want to set the TZ via CGI, is that the only TZ observed
 | by RRDs.pm is the one it started with.  Setting $ENV{"TZ"}
 | was ineffective.

try setting TZ in the BEGIN{  }; section or just before
calling RRDs::graph

the problem could be that mod_perl runs seceral instances of your
script and if you set TZ in one instance eg the one which generates
the webpage, it will not be effective in the one which generates
the images



 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list