[rrd-users] Re: Graphs shifted back in time
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Thu Mar 7 01:31:43 MET 2002
Michel Blanc wrote:
> I have a proble when I graph data. The x axis is shifter back in time by
> six hours.
> The data plotted is correct, but the values for noon, for instance,
> appear at 6AM.
>
> The data in the database has correct timestamp, correct timezone, and
> the machine has a correc date.
Most likely the webserver doesn't know about the correct timezone.
The timezone is *not* stored in the database.
Create a small cgi script that only returns the date and time. For
instance, using bash:
#!/bin/bash
echo 'Content-type: text/plain'
echo
date -u
date
Put this inside your cgi-bin directory, don't forget to chmod 755.
Also do not forget to remove it after you ran the test.
It should print the time (and date) twice, one for UTC time and one
for local time.
You seem to be living in the same timezone as I do; if so, the
difference should be one hour (local time being ahead of UTC).
Two handy links:
http://liftoff.msfc.nasa.gov/Academy/Rocket_Sci/clocks/time-gmt.html
http://sunearth.gsfc.nasa.gov/eclipse/SEhelp/TimeZone.html
cheers,
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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