[O] Bug: org-icalendar converts org-icalendar-timezone to uppercase during export

2013-01-07 Thread David Engster
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)


Re: [O] Bug: org-icalendar converts org-icalendar-timezone to uppercase during export

2013-01-07 Thread Bastien
Hi David,

David Engster d...@randomsample.de writes:

 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.

Applied, thanks!

-- 
 Bastien