rtcwake: ignore the tm_isdst field returned from the RTC

Signed-off-by: Paul Fox <pgf@laptop.org>
This commit is contained in:
Paul Fox 2009-08-13 11:35:53 -04:00 committed by Karel Zak
parent fa2b1cb32e
commit 1da17ec6c1
1 changed files with 1 additions and 1 deletions

View 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) {