From 1da17ec6c1a22ae15fd4bf219d693e612b4bfe58 Mon Sep 17 00:00:00 2001 From: Paul Fox Date: Thu, 13 Aug 2009 11:35:53 -0400 Subject: [PATCH] rtcwake: ignore the tm_isdst field returned from the RTC Signed-off-by: Paul Fox --- sys-utils/rtcwake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index 1efc7209..7b2df26a 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) { -- 2.39.5