summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-03-03 06:39:41 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-03-03 06:39:41 (GMT)
commit7c6686e2aec4c704fcfa5c9f58f8eedf44c3f1cd (patch)
tree271c6bd507ee81637f96bbee329bee05e2182f60
parente0cdbb50abceae359934f6421445491315069ab7 (diff)
downloadpykolab-7c6686e2aec4c704fcfa5c9f58f8eedf44c3f1cd.tar.gz
Return the correct ical property for date-only recurrence-id
-rw-r--r--pykolab/xml/event.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index ab643a5..1ccb097 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -643,7 +643,7 @@ class Event(object):
def get_ical_recurrenceid(self):
rid = self.get_recurrence_id()
if isinstance(rid, datetime.datetime) or isinstance(rid, datetime.date):
- prop = icalendar.vDatetime(rid)
+ prop = icalendar.vDate(rid) if isinstance(rid, datetime.date) else icalendar.vDatetime(rid)
if self.thisandfuture:
prop.params.update({'RANGE':'THISANDFUTURE'})
return prop