emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 1ab6445 10/12: Fix time zone in previous rewrite of


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 1ab6445 10/12: Fix time zone in previous rewrite of newsticker--decode-iso8601-date
Date: Wed, 31 Jul 2019 15:47:59 -0400 (EDT)

branch: master
commit 1ab6445bb3ed7e0ebe771692cbeda557a82b9381
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 5064610..1fb7fe0 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))



reply via email to

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