mirror of
https://github.com/janet-lang/janet
synced 2025-04-06 07:17:16 +00:00
Use _tzset() on windows before localtime_s
This commit is contained in:
parent
a6f93efd39
commit
e316ccb1e0
@ -1345,6 +1345,7 @@ JANET_CORE_FN(os_date,
|
||||
if (argc >= 2 && janet_truthy(argv[1])) {
|
||||
/* local time */
|
||||
#ifdef JANET_WINDOWS
|
||||
_tzset();
|
||||
localtime_s(&t_infos, &t);
|
||||
t_info = &t_infos;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user