summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-08-15 03:42:58 +0200
committerBastien Guerry <bzg@altern.org>2012-08-15 03:42:58 +0200
commit7f6a127e46f3145ae2a84d2f39664520120a2271 (patch)
tree50a4e6e274fce81238dd61acd03bffbc3e8bbbc4
parent65dcca50868b67bcccbf3ac22452999bb825b18b (diff)
downloadorg-mode-7f6a127e46f3145ae2a84d2f39664520120a2271.tar.gz
org-icalendar.el: Fix bug about handling `alarm-time'
* org-icalendar.el (org-print-icalendar-entries): Fix bug about handling `alarm-time'. Thanks to Charles Philip Chan for reporting this.
-rw-r--r--lisp/org-icalendar.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el
index eb1892d..3cac791 100644
--- a/lisp/org-icalendar.el
+++ b/lisp/org-icalendar.el
@@ -360,7 +360,7 @@ When COMBINE is non nil, add the category to each line."
(or (org-id-get) (org-id-new)))
categories (org-export-get-categories)
alarm-time (org-entry-get nil "APPT_WARNTIME")
- alarm-time (when alarm-time (string-to-number alarm-time))
+ alarm-time (if alarm-time (string-to-number alarm-time) 0)
alarm ""
deadlinep nil scheduledp nil)
(if (looking-at re2)