mirror of
https://github.com/SystemRage/py-kms.git
synced 2025-08-10 23:15:16 +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 )
|
||||
os.remove('/etc/localtime')
|
||||
os.symlink(os.path.join('/usr/share/zoneinfo/', tz), '/etc/localtime')
|
||||
f = open("/etc/timezone", "w")
|
||||
f.write(tz)
|
||||
f.close()
|
||||
|
||||
|
||||
# Main
|
||||
|
Reference in New Issue
Block a user