aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-31 15:10:38 +0200
committerLars Ingebrigtsen2019-07-31 21:47:29 +0200
commit4dcb692de0cf0107149abe501663a1477571bfc0 (patch)
tree964a46548941cc45eef9b212f013255ab4855bd7
parente82ae1db3c63449641f65cf249efa5b475da22a2 (diff)
downloademacs-4dcb692de0cf0107149abe501663a1477571bfc0.tar.gz
emacs-4dcb692de0cf0107149abe501663a1477571bfc0.zip
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".
-rw-r--r--lisp/calendar/time-date.el6
1 files changed, 6 insertions, 0 deletions
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."
530 (setf (decoded-time-month time) 1)) 530 (setf (decoded-time-month time) 1))
531 (unless (decoded-time-year time) 531 (unless (decoded-time-year time)
532 (setf (decoded-time-year time) 0)) 532 (setf (decoded-time-year time) 0))
533
534 ;; When we don't have a time zone and we don't have a DST, then mark
535 ;; it as unknown.
536 (when (and (not (decoded-time-zone time))
537 (not (decoded-time-dst time)))
538 (setf (decoded-time-dst time) -1))
533 time) 539 time)
534 540
535(provide 'time-date) 541(provide 'time-date)