aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2022-12-29 19:16:09 -0800
committerPaul Eggert2022-12-29 21:32:14 -0800
commit73769dc2b872441eb0b8565e1090e97fc0b5d521 (patch)
tree9e6cbecd71e67df193ed26e1d873fa46ad3b3d04
parent8c13e8497821881b5197a1717e9e53b9991859d0 (diff)
downloademacs-73769dc2b872441eb0b8565e1090e97fc0b5d521.tar.gz
emacs-73769dc2b872441eb0b8565e1090e97fc0b5d521.zip
In cal-dst, be consistent re default to UTC
* lisp/calendar/cal-dst.el (calendar-standard-time-zone-name) (calendar-daylight-time-zone-name): When using alphabetic time zone abbreviations, default to "UTC" rather than to "EST" or "EDT", to be consistent with the behavior when using numeric time zone abbreviations. Also, in the numeric time zone use "-0000" rather than "+0000" to show that the time zone is unknown; this is the RFC 5322 standard.
-rw-r--r--lisp/calendar/cal-dst.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/calendar/cal-dst.el b/lisp/calendar/cal-dst.el
index 5f601f24d24..c8a65126a49 100644
--- a/lisp/calendar/cal-dst.el
+++ b/lisp/calendar/cal-dst.el
@@ -354,10 +354,10 @@ If the locale never uses daylight saving time, set this to 0."
354 (if calendar-current-time-zone-cache 354 (if calendar-current-time-zone-cache
355 (format-time-string 355 (format-time-string
356 "%z" 0 (* 60 (car calendar-current-time-zone-cache))) 356 "%z" 0 (* 60 (car calendar-current-time-zone-cache)))
357 "+0000") 357 "-0000")
358 (or (nth 2 calendar-current-time-zone-cache) "EST")) 358 (or (nth 2 calendar-current-time-zone-cache) "UTC"))
359 "Abbreviated name of standard time zone at `calendar-location-name'. 359 "Abbreviated name of standard time zone at `calendar-location-name'.
360For example, \"EST\" in New York City, \"PST\" for Los Angeles." 360For example, \"-0500\" or \"EST\" in New York City."
361 :type 'string 361 :type 'string
362 :version "28.1" 362 :version "28.1"
363 :set-after '(calendar-time-zone-style) 363 :set-after '(calendar-time-zone-style)
@@ -368,10 +368,10 @@ For example, \"EST\" in New York City, \"PST\" for Los Angeles."
368 (if calendar-current-time-zone-cache 368 (if calendar-current-time-zone-cache
369 (format-time-string 369 (format-time-string
370 "%z" 0 (* 60 (cadr calendar-current-time-zone-cache))) 370 "%z" 0 (* 60 (cadr calendar-current-time-zone-cache)))
371 "+0000") 371 "-0000")
372 (or (nth 3 calendar-current-time-zone-cache) "EDT")) 372 (or (nth 3 calendar-current-time-zone-cache) "UTC"))
373 "Abbreviated name of daylight saving time zone at `calendar-location-name'. 373 "Abbreviated name of daylight saving time zone at `calendar-location-name'.
374For example, \"EDT\" in New York City, \"PDT\" for Los Angeles." 374For example, \"-0400\" or \"EDT\" in New York City."
375 :type 'string 375 :type 'string
376 :version "28.1" 376 :version "28.1"
377 :set-after '(calendar-time-zone-style) 377 :set-after '(calendar-time-zone-style)