* Bug: org-icalendar converts org-icalendar-timezone to uppercase during export
@ 2013-01-07 22:27 David Engster
2013-01-07 23:00 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: David Engster @ 2013-01-07 22:27 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
When exporting an Org file as iCalendar and org-icalendar-timezone is
set to e.g. "Europe/Berlin", it gets inserted as "EUROPE/BERLIN" during
export (and some CalDAV servers don't like that).
This is because "%Z" gets replaced with org-icalendar-timezone, and the
FIXEDCASE parameter isn't set in the call to
replace-regexp-in-string. The attached patch fixes that.
-David
[-- Attachment #2: org-icalendar-timezone.diff --]
[-- Type: text/plain, Size: 548 bytes --]
diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el
index 389dc5d..12cd058 100644
--- a/lisp/org-icalendar.el
+++ b/lisp/org-icalendar.el
@@ -677,7 +677,7 @@ a time), or the day by one (if it does not contain a time)."
(setq fmt (if have-time
(replace-regexp-in-string "%Z"
org-icalendar-timezone
- org-icalendar-date-time-format)
+ org-icalendar-date-time-format t)
";VALUE=DATE:%Y%m%d"))
(concat keyword (format-time-string fmt time
(and (org-icalendar-use-UTC-date-timep)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-07 23:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-07 22:27 Bug: org-icalendar converts org-icalendar-timezone to uppercase during export David Engster
2013-01-07 23:00 ` Bastien
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).