summaryrefslogtreecommitdiffstats
path: root/pykolab/xml/event.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/xml/event.py')
-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