From 9c576c207a8f4f98fd89deb4f3b4bfbe1ad37e37 Mon Sep 17 00:00:00 2001 From: Bastien Date: Fri, 24 Jan 2020 12:06:26 -0800 Subject: [PATCH] Fix parse-time-string bug with ISO 8601 defaults * lisp/calendar/parse-time.el (parse-time-string): Do not use decoded-time-set-defaults; just let iso8601-parse do its thing. --- lisp/calendar/parse-time.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calendar/parse-time.el b/lisp/calendar/parse-time.el index 6a4612297c7..b199fca2db5 100644 --- a/lisp/calendar/parse-time.el +++ b/lisp/calendar/parse-time.el @@ -158,7 +158,7 @@ The values returned are identical to those of `decode-time', but any unknown values other than DST are returned as nil, and an unknown DST value is returned as -1." (condition-case () - (decoded-time-set-defaults (iso8601-parse string)) + (iso8601-parse string) (wrong-type-argument (let ((time (list nil nil nil nil nil nil nil -1 nil)) (temp (parse-time-tokenize (downcase string)))) -- 2.39.2