From 09fbb23e90b19bf831888644f94ed3ca7e984bb7 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 26 Jul 2012 12:41:26 -0700 Subject: [PATCH] use exmachina to configure timezone --- modules/installed/system/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/installed/system/config.py b/modules/installed/system/config.py index b31dc6009..01c4ec693 100644 --- a/modules/installed/system/config.py +++ b/modules/installed/system/config.py @@ -1,4 +1,4 @@ -import os, shutil, subprocess +import os, subprocess from socket import gethostname import cherrypy import simplejson as json @@ -132,8 +132,8 @@ class general(FormPlugin, PagePlugin): message += msg if time_zone != sys_store['time_zone']: src = os.path.join("/usr/share/zoneinfo", time_zone) - cfg.log.info("Copying %s to /etc/localtime" % src) - shutil.copy(src, "/etc/localtime") + cfg.log.info("Setting timezone to %s" % time_zone) + cfg.exmachina.misc.set_timezone(time_zone) sys_store['time_zone'] = time_zone return message or "Settings updated."