Call tzset to initialize timezone (#6466)

This commit is contained in:
GULPF
2017-10-03 07:31:06 +02:00
committed by Andreas Rumpf
parent 9d4f5c6d2c
commit 0b7b116f04

View File

@@ -77,6 +77,8 @@ when defined(posix) and not defined(JS):
when not defined(freebsd) and not defined(netbsd) and not defined(openbsd):
var timezone {.importc, header: "<time.h>".}: int
proc tzset(): void {.importc, header: "<time.h>".}
tzset()
elif defined(windows):
import winlean