]> code.delx.au - gnu-emacs/commitdiff
Simplify icalendar decoding of Z dates
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jul 2015 16:47:39 +0000 (09:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Jul 2015 16:48:02 +0000 (09:48 -0700)
* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
Simplify calculation of time strings with trailing "Z".

lisp/calendar/icalendar.el

index da5d85eaf24e6e9c96b848b7dba83c63fb09915f..3e2a2f8a858063a5466d8170cc82156d2719bdcc 100644 (file)
@@ -618,13 +618,7 @@ FIXME: multiple comma-separated values should be allowed!"
         (when (and (> (length isodatetimestring) 15)
                    ;; UTC specifier present
                    (char-equal ?Z (aref isodatetimestring 15)))
-          ;; if not UTC add current-time-zone offset
-          ;; current-time-zone should be called with actual UTC time
-          ;; (daylight saving at that time may differ to current one)
-          (setq second (+ (car (current-time-zone
-                                (encode-time second minute hour day month year
-                                             0)))
-                          second)))
+          (setq zone t))
         ;; shift if necessary
         (if day-shift
             (let ((mdy (calendar-gregorian-from-absolute