mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fixes timezone get on win32 (#4494)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
parent
2bad20abf8
commit
f2e9062cfc
@ -37,7 +37,7 @@ def set_timezone_and_exit(timezone):
|
||||
|
||||
def get_timezone():
|
||||
assert sys.platform == 'win32', "get_timezone is Windows only function"
|
||||
return subprocess.check_output(['cmd', '/S', '/C', 'tzutil', '/g'])
|
||||
return subprocess.check_output(['cmd', '/S', '/C', 'tzutil', '/g'], universal_newlines=True)
|
||||
|
||||
|
||||
def set_sighdl_to_reset_timezone(timezone):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user