windows: fix time conversion in stat

This commit is contained in:
Igor Zinkovsky 2012-02-27 12:54:45 -08:00
parent fca18c33ac
commit 9a5c1bad90

View File

@ -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 {