[rrd-users] RRDGraph Timezone Offset (using PHP bindings)
Benny Baumann
BenBE at geshi.org
Fri Apr 30 19:40:04 CEST 2010
Hi,
Am 24.11.2009 06:40, schrieb Nicholas Harris:
> Hello all,
>
> I've seen similar questions to this, but never a definitive answer: is
> it possible to offset the times shown on RRD graphs for a specific timezone?
>
> Using the PHP bindings, I've built a site that allows users to manually
> specify time ranges for display. I'd like them to also be able to select
> custom timezones, as the RRD server is CST but the users are all over
> the world.
>
> Seems like setting the TZ environment var in Perl is only solution so
> far... anyone seen or done anything like that within PHP?
>
PHP has a setenv function which can be used to set the TZ environment
variable. Have a try that way.
In case the RRD API allows for another way to get this info set I'd be
glad to hear how and I'll look into getting the PHP Timezone settings
through to the API bindings.
Regards,
BenBE.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20100430/efe52382/attachment.pgp
More information about the rrd-users
mailing list