emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9c576c2 1/2: Fix parse-time-string bug with ISO 8601 defaults


From: Paul Eggert
Subject: master 9c576c2 1/2: Fix parse-time-string bug with ISO 8601 defaults
Date: Fri, 24 Jan 2020 16:42:13 -0500 (EST)

branch: master
commit 9c576c207a8f4f98fd89deb4f3b4bfbe1ad37e37
Author: Bastien <address@hidden>
Commit: Paul Eggert <address@hidden>

    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 6a46122..b199fca 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]