From 1ab6445bb3ed7e0ebe771692cbeda557a82b9381 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 31 Jul 2019 15:18:03 +0200 Subject: [PATCH] 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. --- lisp/net/newst-backend.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)) -- 2.39.2