[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 659646f135 07/50: Backport commit e0ca8f791 from Em
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 659646f135 07/50: Backport commit e0ca8f791 from Emacs |
Date: |
Tue, 4 Oct 2022 21:57:58 -0400 (EDT) |
branch: externals/org
commit 659646f135c6e9a339731b39b9b534976a283277
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Kyle Meyer <kyle@kyleam.com>
Backport commit e0ca8f791 from Emacs
* lisp/ox-icalendar.el (org-icalendar-template)
(org-icalendar-export-current-agenda)
(org-icalendar--combine-files):
Prefer (format-time-string "%Z") to (cadr (current-time-zone)).
Prefer format-time-string to current-time-zone
e0ca8f791c2e4396f1e40d86c136ae547b40185d
Paul Eggert
Thu Dec 16 11:17:26 2021 -0800
[ km: The org-icalendar--combine-files change has a typo that will be
fixed in a follow-up commit. ]
---
lisp/ox-icalendar.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el
index 148e111fd4..7a62145076 100644
--- a/lisp/ox-icalendar.el
+++ b/lisp/ox-icalendar.el
@@ -824,8 +824,7 @@ as a communication channel."
(if (not (plist-get info :with-author)) ""
(org-export-data (plist-get info :author) info))
;; Timezone.
- (if (org-string-nw-p org-icalendar-timezone) org-icalendar-timezone
- (cadr (current-time-zone)))
+ (or (org-string-nw-p org-icalendar-timezone) (format-time-string "%Z"))
;; Description.
(org-export-data (plist-get info :title) info)
contents))
@@ -972,7 +971,7 @@ This function assumes major mode for current buffer is
(org-icalendar--vcalendar
org-icalendar-combined-name
user-full-name
- (or (org-string-nw-p org-icalendar-timezone) (cadr (current-time-zone)))
+ (or (org-string-nw-p org-icalendar-timezone) (format-time-string "%Z"))
org-icalendar-combined-description
contents)))
(run-hook-with-args 'org-icalendar-after-save-hook file)))
@@ -995,7 +994,7 @@ FILES is a list of files to build the calendar from."
user-full-name
;; Timezone.
(or (org-string-nw-p org-icalendar-timezone)
- (cadr (current-time-zone)))
+ (format-time-string "Z"))
;; Description.
org-icalendar-combined-description
;; Contents.
- [elpa] externals/org updated (506d5b12dd -> 1f8cc85542), ELPA Syncer, 2022/10/04
- [elpa] externals/org de5bdb090d 01/50: Backport commit 19de241a7 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org f99a8ea434 04/50: Backport commit 104e90d93 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org c7e1bbfd1c 03/50: Backport commit 664094222 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 659646f135 07/50: Backport commit e0ca8f791 from Emacs,
ELPA Syncer <=
- [elpa] externals/org 1a3dd6ec85 08/50: Backport commit 5f57b41aa from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 37bb3547c7 12/50: Backport commit fa1a7ac61 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org e74ea551bf 14/50: Backport commit cc8b6101f from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org c77692e8fb 22/50: Backport commit f94e93a6e from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 69ba7a20be 24/50: Backport commit 2a8d08360 from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 1a2d2fd5e4 05/50: Backport commit c1145c31a from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org e7572fa86c 02/50: Backport commit 616dcf27e from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 723af4afae 10/50: Backport commit 8ef37913d from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org 56ba22b9df 11/50: Backport commit 3abb3681b from Emacs, ELPA Syncer, 2022/10/04
- [elpa] externals/org c06dc10f39 13/50: Backport commit 2fba71cf1 from Emacs, ELPA Syncer, 2022/10/04