From: Paul Fox Date: Thu, 13 Aug 2009 15:35:53 +0000 (-0400) Subject: rtcwake: ignore the tm_isdst field returned from the RTC X-Git-Tag: v2.17-rc1~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1da17ec6c1a22ae15fd4bf219d693e612b4bfe58;p=thirdparty%2Futil-linux.git rtcwake: ignore the tm_isdst field returned from the RTC Signed-off-by: Paul Fox --- diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index 1efc720989..7b2df26abe 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -158,7 +158,7 @@ static int get_basetimes(int fd) tm.tm_mday = rtc.tm_mday; tm.tm_mon = rtc.tm_mon; tm.tm_year = rtc.tm_year; - tm.tm_isdst = rtc.tm_isdst; /* stays unspecified? */ + tm.tm_isdst = -1; /* assume the system knows better than the RTC */ rtc_time = mktime(&tm); if (rtc_time == (time_t)-1) {