summaryrefslogtreecommitdiffstats
path: root/pykolab/xml/utils.py
diff options
context:
space:
mode:
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: