Changing Timezones

Asked by Mike Nolet

Hi,

I'm having some trouble updating the timezone for our graphite setup. I've tried editing the 'TIME_ZONE' variable in both settings.py and local_settings.py separately, but no luck:

[mnolet@metrics-01 web]$ sudo /etc/init.d/carbon-agent.sh stop
Stopping carbon-agent
[mnolet@metrics-01 web]$ sudo /etc/init.d/carbon-agent.sh start
Starting carbon-agent
[mnolet@metrics-01 web]$ sudo /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[mnolet@metrics-01 web]$ grep TIME_ZONE *
local_settings.py:TIME_ZONE = 'America/New_York'
settings.py:TIME_ZONE = 'America/Chicago'
Binary file settings.pyc matches
[mnolet@metrics-01 web]$

Yet graphs are still showing in Chicago time (13:46 as last update versus 14:46 since last update).

Any clues?

-Mike

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nikunj Shanti (me-nikunj) said :
#1

I had the some problem. I modified the settings.py file to the correct timezone and it fixed the problem.

Revision history for this message
chrismd (chrismd) said :
#2

Yes now I remember, this is a bug (fixed in trunk). The problem is that settings.py reads in local_settings.py and then defines a few more settings, one of which is TIME_ZONE, so the settings.py value is overriding the local_settings.py value. For now just change it in settings.py as Nikunj suggests, the next release will solve this.

Can you help with this problem?

Provide an answer of your own, or ask Mike Nolet for more information if necessary.

To post a message you must log in.