mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
Call tzset to initialize timezone (#6466)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user