From: Lars Ingebrigtsen Date: Wed, 31 Jul 2019 13:18:03 +0000 (+0200) Subject: Fix time zone in previous rewrite of newsticker--decode-iso8601-date X-Git-Tag: emacs-27.0.90~1793 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1ab6445bb3ed7e0ebe771692cbeda557a82b9381;p=emacs.git Fix time zone in previous rewrite of newsticker--decode-iso8601-date * lisp/net/newst-backend.el (newsticker--decode-iso8601-date): According to the tests, this function should default to the Z time zone. --- diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el index 5064610e39c..1fb7fe005ea 100644 --- a/lisp/net/newst-backend.el +++ b/lisp/net/newst-backend.el @@ -1597,10 +1597,11 @@ This function calls `message' with arguments STRING and ARGS, if (defun newsticker--decode-iso8601-date (string) "Return ISO8601-STRING in format like `encode-time'. -Converts from ISO-8601 to Emacs representation." +Converts from ISO-8601 to Emacs representation. If no time zone +is present, this fuction defaults to universal time." (if string (condition-case nil - (encode-time (iso8601-parse string)) + (encode-time (decoded-time-set-defaults (iso8601-parse string) 0)) (wrong-type-argument (message "Cannot decode \"%s\"" string) nil))