[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 007e66bccb 5/7: Use RFC 822 abbrevs in sunrise-sunset strings
From: |
Paul Eggert |
Subject: |
master 007e66bccb 5/7: Use RFC 822 abbrevs in sunrise-sunset strings |
Date: |
Fri, 30 Dec 2022 00:32:26 -0500 (EST) |
branch: master
commit 007e66bccb2cb8382158e5e24727fd1b4478cd69
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>
Use RFC 822 abbrevs in sunrise-sunset strings
* lisp/calendar/solar.el (sunrise-sunset): Use RFC 822 time zone
abbreviations like "+0530" instead of idiosyncratic abbreviations
like "UTC+330min".
---
lisp/calendar/solar.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el
index 8f501824bb..0b5bc16653 100644
--- a/lisp/calendar/solar.el
+++ b/lisp/calendar/solar.el
@@ -839,12 +839,10 @@ This function is suitable for execution in an init file."
"E" "W"))))))
(calendar-standard-time-zone-name
(if (< arg 16) calendar-standard-time-zone-name
- (cond ((zerop calendar-time-zone)
- (if (eq calendar-time-zone-style 'numeric)
- "+0000" "UTC"))
- ((< calendar-time-zone 0)
- (format "UTC%dmin" calendar-time-zone))
- (t (format "UTC+%dmin" calendar-time-zone)))))
+ (if (and (zerop calendar-time-zone)
+ (not (eq calendar-time-zone-style 'numeric)))
+ "UTC"
+ (format-time-string "%z" 0 (* 60 calendar-time-zone)))))
(calendar-daylight-savings-starts
(if (< arg 16) calendar-daylight-savings-starts))
(calendar-daylight-savings-ends
- master updated (91ae9f3d12 -> 9153cf8158), Paul Eggert, 2022/12/30
- master 523261b454 6/7: Document calc-time-zone abbreviation obsolescence, Paul Eggert, 2022/12/30
- master 007e66bccb 5/7: Use RFC 822 abbrevs in sunrise-sunset strings,
Paul Eggert <=
- master 8c13e84978 1/7: Fix newsticker timezone decode, Paul Eggert, 2022/12/30
- master 73769dc2b8 2/7: In cal-dst, be consistent re default to UTC, Paul Eggert, 2022/12/30
- master bc4cbbcc57 4/7: Add nndiary-headers obsolescence comment, Paul Eggert, 2022/12/30
- master d11e34ce76 3/7: Default mbox "From " time zone to -0000, Paul Eggert, 2022/12/30
- master 9153cf8158 7/7: Avoid some obsolescent tz abbrevs in doc., Paul Eggert, 2022/12/30