CC-1942: Add ability to set timezone in preferences

-change timezone in python
This commit is contained in:
martin 2011-08-12 15:36:00 -04:00
parent 84ec62eeca
commit b538f1cc82
6 changed files with 69 additions and 29 deletions

View file

@ -55,6 +55,11 @@ def handle_message(body, message):
if(command == 'update_schedule'):
SCHEDULE_PUSH_MSG = m['schedule']
elif (command == 'update_timezone'):
logger.info("Setting timezone to %s", m['timezone'])
os.environ['TZ'] = m['timezone']
time.tzset()
# ACK the message to take it off the queue
message.ack()