summaryrefslogtreecommitdiffstats
path: root/pykolab/xml/utils.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-12-23 06:36:46 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2014-12-23 06:38:28 +0100
commit856a2aa11f6d1d661eacbf9e4f34c92d23a2f4ce (patch)
tree59490a4ef0878b079d0120a5f0bf0d9250162a2c /pykolab/xml/utils.py
parent7c459583bc4963f0de36cb85b2fccc5e33fdedfb (diff)
downloadpykolab-856a2aa11f6d1d661eacbf9e4f34c92d23a2f4ce.tar.gz
Fix event.get_next_occurence() computation with infinitely recurring all-day events (#4079)
Diffstat (limited to 'pykolab/xml/utils.py')
-rw-r--r--pykolab/xml/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/xml/utils.py b/pykolab/xml/utils.py
index 97b72af..a3ecbcf 100644
--- a/pykolab/xml/utils.py
+++ b/pykolab/xml/utils.py
@@ -14,7 +14,7 @@ def to_dt(dt):
"""
if isinstance(dt, datetime.date) and not isinstance(dt, datetime.datetime) or dt is not None and not hasattr(dt, 'hour'):
- dt = datetime.datetime(dt.year, dt.month, dt.day, 0, 0, 0, 0, tzinfo=tzlocal())
+ dt = datetime.datetime(dt.year, dt.month, dt.day, 0, 0, 0, 0, tzinfo=pytz.utc)
elif isinstance(dt, datetime.datetime):
if dt.tzinfo == None: