[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 136dd7b: Simplify icalendar decoding of Z dates
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 136dd7b: Simplify icalendar decoding of Z dates |
Date: |
Mon, 20 Jul 2015 16:48:07 +0000 |
branch: master
commit 136dd7bc02576a10ea77b33afd3cb9179c064e3d
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Simplify icalendar decoding of Z dates
* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
Simplify calculation of time strings with trailing "Z".
---
lisp/calendar/icalendar.el | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
index da5d85e..3e2a2f8 100644
--- a/lisp/calendar/icalendar.el
+++ b/lisp/calendar/icalendar.el
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 136dd7b: Simplify icalendar decoding of Z dates,
Paul Eggert <=