From 42c6d9fb50628957e1d0478fc9eec7fe362eb026 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 1 Jul 2022 14:23:28 -0600 Subject: [PATCH] In timegm() initialize tm_isdst to 0 like tzcode does. --- lib/util/timegm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util/timegm.c b/lib/util/timegm.c index d87c4eaad..968d829f4 100644 --- a/lib/util/timegm.c +++ b/lib/util/timegm.c @@ -88,6 +88,7 @@ sudo_timegm(struct tm *tm) { time_t result; + tm->tm_isdst = 0; result = mktime(tm); if (result != -1) result += get_gmtoff(&result);