From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Engster Subject: Bug: org-icalendar converts org-icalendar-timezone to uppercase during export Date: Mon, 07 Jan 2013 23:27:39 +0100 Message-ID: <87zk0kd3xg.fsf@engster.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsLAk-0002vS-Ki for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 17:27:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsLAb-0002Wc-Ut for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 17:27:58 -0500 Received: from randomsample.de ([83.169.19.17]:46209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsLAb-0002RJ-IM for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 17:27:49 -0500 Received: from dslc-082-082-165-178.pools.arcor-ip.net ([82.82.165.178] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TsLAS-0000TW-6j for emacs-orgmode@gnu.org; Mon, 07 Jan 2013 23:27:40 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=org-icalendar-timezone.diff 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) --=-=-=--