From 4dcb692de0cf0107149abe501663a1477571bfc0 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 31 Jul 2019 15:10:38 +0200 Subject: [PATCH] Default DST to "undecided" in decoded-time-set-defaults * lisp/calendar/time-date.el (decoded-time-set-defaults): When we don't have a zone or a DST, set DST to "undecided". --- lisp/calendar/time-date.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index 6f851712472..dfe8dce68b1 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -530,6 +530,12 @@ TIME is modified and returned." (setf (decoded-time-month time) 1)) (unless (decoded-time-year time) (setf (decoded-time-year time) 0)) + + ;; When we don't have a time zone and we don't have a DST, then mark + ;; it as unknown. + (when (and (not (decoded-time-zone time)) + (not (decoded-time-dst time))) + (setf (decoded-time-dst time) -1)) time) (provide 'time-date) -- 2.39.2