From 2fc0f991d8d89ae0abf33994fa9178612a0eaa3c Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Wed, 27 Oct 2004 21:17:44 +0000 Subject: [PATCH] In MSVCRT_localtime() return tm_isdst = 0 when there are no daylight time changes in the local time zone. --- dlls/msvcrt/time.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c index b1cc55b72f6..eb3963ce8cf 100644 --- a/dlls/msvcrt/time.c +++ b/dlls/msvcrt/time.c @@ -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; } -- 2.11.4.GIT