[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f25ad39 7/9: Assume current-time-zone exists
From: |
Paul Eggert |
Subject: |
master f25ad39 7/9: Assume current-time-zone exists |
Date: |
Thu, 16 Dec 2021 14:17:38 -0500 (EST) |
branch: master
commit f25ad39983cc3e89b007390bc0fd860f48379497
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Assume current-time-zone exists
* lisp/timezone.el (timezone-time-zone-from-absolute): Simplify by
assuming current-time-zone exists (true since Emacs 19.7 in 1993).
---
lisp/timezone.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lisp/timezone.el b/lisp/timezone.el
index 0fcdbdb..7a461c4 100644
--- a/lisp/timezone.el
+++ b/lisp/timezone.el
@@ -299,11 +299,10 @@ Return a list in the same format as `current-time-zone's
result,
or nil if the local time zone could not be computed.
DATE is the number of days elapsed since the (imaginary)
Gregorian date Sunday, December 31, 1 BC."
- (and (fboundp 'current-time-zone)
- (let ((utc-time (timezone-time-from-absolute date seconds)))
- (and utc-time
- (let ((zone (current-time-zone utc-time)))
- (and (car zone) zone))))))
+ (let ((utc-time (timezone-time-from-absolute date seconds)))
+ (and utc-time
+ (let ((zone (current-time-zone utc-time)))
+ (and (car zone) zone)))))
(defun timezone-fix-time (date local timezone)
"Convert DATE (default timezone LOCAL) to YYYY-MM-DD-HH-MM-SS-ZONE vector.
- master updated (e726a00 -> 9e131f5), Paul Eggert, 2021/12/16
- master cea0d61 4/9: Prefer format-time-string to current-time-string, Paul Eggert, 2021/12/16
- master e0ca8f7 6/9: Prefer format-time-string to current-time-zone, Paul Eggert, 2021/12/16
- master 73d6b19 8/9: Omit temporary warning re obsolete timestamps, Paul Eggert, 2021/12/16
- master 34e3ad5 1/9: Fix encode-time doc string, Paul Eggert, 2021/12/16
- master fc520f8 5/9: Minor nndiary simplificatiuon with time zone, Paul Eggert, 2021/12/16
- master 3e6c69de 2/9: Fix icalendar time zone parsing glitch, Paul Eggert, 2021/12/16
- master dd0727e 3/9: encode-time simplifications, Paul Eggert, 2021/12/16
- master f25ad39 7/9: Assume current-time-zone exists,
Paul Eggert <=
- master 9e131f5 9/9: Simplify epa-ks--parse-buffer timestamp handling, Paul Eggert, 2021/12/16