graph time is off by about 2 hours forward

Asked by Paul Nguyen

Hello,

This is my Graphite configuration

Ubuntu 11.04 x64 server
VirtualBox 4.0.10
python 2.7
twisted 10.x
carbon-0.9.8
graphite-web-0.9.8
whisper-0.9.8

For some reason the time-points are 2 hours in the future. Let's say I start sending data to carbon at 13:00 PDT, graphite will render those data points at 15:00 PDT. I early had this installation on CentOS 5, with some old python, twisted packages and had the same behavior. It has been consistent for me.

Has anyone seen this behavior? Does anyone know how to fix this? Is the a configuration to adjust?

Thanks for any help,

Paul

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
chrismd
Solved:
Last query:
Last reply:
Revision history for this message
Best chrismd (chrismd) said :
#1

Usually Django (the framework the graphite webapp is built on) autodetects your system timezone but if it cannot it assumes a default of CDT, which is 2 hours ahead of PDT. You may want to doublecheck that your system's timezone configuration is correct (which it may be, I'm not entirely sure what causes the autodetect to fail). If that doesn't work then try overriding the TIMEZONE setting in your local_settings.py file, set it to something like 'America/Los_Angeles'. Restart apache and you should be good to go.

Revision history for this message
Paul Nguyen (pauln75) said :
#2

Thanks for the answer. This make sense. I'll look into the Django default timezone, and try your suggestion of hardsetting the TIMEZONE. Will report back if this solves my problem.

I appreciate your help.

Paul

Revision history for this message
Paul Nguyen (pauln75) said :
#3

Thanks chrismd, that solved my question.

Revision history for this message
Matt Blair (mattblair) said :
#4

For others who are scratching their heads, the configuration entry is "TIME_ZONE", not "TIMEZONE".

Ref: https://docs.djangoproject.com/en/1.3/ref/settings/#time-zone