]> err.no Git - util-linux/commitdiff
rtcwake: ignore the tm_isdst field returned from the RTC
authorPaul Fox <pgf@laptop.org>
Thu, 13 Aug 2009 15:35:53 +0000 (11:35 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Sep 2009 10:29:37 +0000 (12:29 +0200)
Signed-off-by: Paul Fox <pgf@laptop.org>
sys-utils/rtcwake.c

index 1efc720989a5dab6bd98be2743a3bb1dd76482b7..7b2df26abeb11e57226ba748632e65998f76c922 100644 (file)
@@ -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) {