windows: fix time conversion in stat
This commit is contained in:
parent
fca18c33ac
commit
9a5c1bad90
@ -253,6 +253,7 @@ void uv_filetime_to_time_t(FILETIME* file_time, time_t* stat_time) {
|
||||
time.tm_hour = system_time.wHour;
|
||||
time.tm_min = system_time.wMinute;
|
||||
time.tm_sec = system_time.wSecond;
|
||||
time.tm_isdst = -1;
|
||||
|
||||
*stat_time = mktime(&time);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user