[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug: org-icalendar converts org-icalendar-timezone to uppercase duri
From: |
David Engster |
Subject: |
[O] Bug: org-icalendar converts org-icalendar-timezone to uppercase during export |
Date: |
Mon, 07 Jan 2013 23:27:39 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) |
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
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)
- [O] Bug: org-icalendar converts org-icalendar-timezone to uppercase during export,
David Engster <=