CC-1942: Add ability to set timezone in preferences
-change timezone in python
This commit is contained in:
parent
84ec62eeca
commit
b538f1cc82
6 changed files with 69 additions and 29 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue