summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/date/date.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/date/date.c b/bin/date/date.c
index 99ebfe6..b7b1656 100644
--- a/bin/date/date.c
+++ b/bin/date/date.c
@@ -268,6 +268,9 @@ setthetime(fmt, p, jflag, nflag)
}
}
+ /* Let mktime() decide whether summer time is in effect. */
+ lt->tm_isdst = -1;
+
/* convert broken-down time to GMT clock time */
if ((tval = mktime(lt)) == -1)
errx(1, "nonexistent time");
OpenPOWER on IntegriCloud