mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-10-11 01:29:22 +08:00
add missing setting to timzeone.
This commit is contained in:
@@ -50,6 +50,9 @@ def change_tz():
|
|||||||
loggersrv.info("Setting timzeone to %s" % tz )
|
loggersrv.info("Setting timzeone to %s" % tz )
|
||||||
os.remove('/etc/localtime')
|
os.remove('/etc/localtime')
|
||||||
os.symlink(os.path.join('/usr/share/zoneinfo/', tz), '/etc/localtime')
|
os.symlink(os.path.join('/usr/share/zoneinfo/', tz), '/etc/localtime')
|
||||||
|
f = open("/etc/timezone", "w")
|
||||||
|
f.write(tz)
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
|
Reference in New Issue
Block a user