Hi Tobi, Thanks for the quick reply.
Im running on a windows system and using vb to update however from your suggestion and for anyone else having the problem you can use the following code which is from here -> http://classicasp.aspfaq.com/date-time-routines-manipulation/how-do-i-convert-local-time-to-utc-gmt-time.html od = now() set oShell = CreateObject("WScript.Shell") atb = "HKEY_LOCAL_MACHINE\System\CurrentControlSet\" &_ "Control\TimeZoneInformation\ActiveTimeBias" offsetMin = oShell.RegRead(atb) nd = dateadd("n", offsetMin, od) WScript.Echo("Current = " & od & "<br>UTC = " & nd) Cheers Brett oetiker wrote: > > Hi Brett, > > > rrdtool times are UTC aligned, if your location is 10h away the > rrdtool days will be shifted 10h vs your local time ... the > simplest way arround this, is to run your rrdtool copy in UTC mode. > > use put a > > TZ=GMT > > in front of every rrdtool command or set the environment variable > in your script ... (that is for ALL rrdtool invocations ... create, > update, graph ... everything !) and you will have to play with the > timestamps a bit when putting data into rrdtool ... > > then rrdtool will seemingly operate in local-time, the only odd bit > will be the times when daylight saving time starts and stops ... > > cheers > tobi > > -- View this message in context: http://rrd-mailinglists.937164.n2.nabble.com/Once-a-day-updates-incorrect-by-timezone-tp5443127p5443222.html Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com. _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
