summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-03-10 06:17:26 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2015-03-10 06:17:26 -0400
commite731c861ebcb52ef33296b53f2a72099a4ae5161 (patch)
tree2748234799bd567a68f7f323e83b479eb7d1dfa1 /wallace
parent694a8c0b2c4215c3c5a05022e7498aecf88da7ac (diff)
downloadpykolab-e731c861ebcb52ef33296b53f2a72099a4ae5161.tar.gz
Force RRULE UNTIL attribute to be a UTC date/time but also account for it to be a date-only value
Diffstat (limited to 'wallace')
-rw-r--r--wallace/module_invitationpolicy.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wallace/module_invitationpolicy.py b/wallace/module_invitationpolicy.py
index 72a4464..ee96634 100644
--- a/wallace/module_invitationpolicy.py
+++ b/wallace/module_invitationpolicy.py
@@ -18,7 +18,6 @@
#
import datetime
-import pytz
import os
import tempfile
import time
@@ -608,7 +607,7 @@ def process_itip_cancel(itip_event, policy, recipient_email, sender_email, recei
if itip_event['recurrence-id'] and master and itip_event['xml'].get_thisandfuture():
rrule = master.get_recurrence()
rrule.set_count(0)
- rrule.set_until(existing.get_start().astimezone(pytz.utc) + datetime.timedelta(days=-1))
+ rrule.set_until(existing.get_start() + datetime.timedelta(days=-1))
master.set_recurrence(rrule)
existing.set_recurrence_id(existing.get_recurrence_id(), True)