From: Bastien Date: Fri, 24 Jan 2020 20:06:26 +0000 (-0800) Subject: Fix parse-time-string bug with ISO 8601 defaults X-Git-Tag: emacs-28.0.90~7908^2~52 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9c576c207a8f4f98fd89deb4f3b4bfbe1ad37e37;p=emacs.git 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. --- 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))))