Call tzset to initialize timezone (#6466)
This commit is contained in:
parent
9d4f5c6d2c
commit
0b7b116f04
1 changed files with 2 additions and 0 deletions
|
|
@ -77,6 +77,8 @@ when defined(posix) and not defined(JS):
|
||||||
|
|
||||||
when not defined(freebsd) and not defined(netbsd) and not defined(openbsd):
|
when not defined(freebsd) and not defined(netbsd) and not defined(openbsd):
|
||||||
var timezone {.importc, header: "<time.h>".}: int
|
var timezone {.importc, header: "<time.h>".}: int
|
||||||
|
proc tzset(): void {.importc, header: "<time.h>".}
|
||||||
|
tzset()
|
||||||
|
|
||||||
elif defined(windows):
|
elif defined(windows):
|
||||||
import winlean
|
import winlean
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue