Commit 2fc0f991 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

In MSVCRT_localtime() return tm_isdst = 0 when there are no daylight

time changes in the local time zone.
parent c639af64
......@@ -124,11 +124,10 @@ struct MSVCRT_tm* MSVCRT_localtime(const MSVCRT_time_t* secs)
tzid = GetTimeZoneInformation(&tzinfo);
if (tzid == TIME_ZONE_ID_UNKNOWN || tzid == TIME_ZONE_ID_INVALID) {
if (tzid == TIME_ZONE_ID_INVALID)
tm.tm_isdst = -1;
} else {
else
tm.tm_isdst = (tzid == TIME_ZONE_ID_DAYLIGHT?1:0);
}
return &tm;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment