summaryrefslogtreecommitdiffstats
path: root/pykolab/xml/utils.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-03-04 08:39:51 -0500
committerThomas Bruederli <bruederli@kolabsys.com>2014-03-04 08:39:51 -0500
commit26adad180f8ada3a21038ddbc6fc1bfa43284ca3 (patch)
tree09ef34c702b83595e99d8fc5eccdc0af6167ae32 /pykolab/xml/utils.py
parente1b881c2ce79a1dfa102cb2c5f8167f7805c08be (diff)
downloadpykolab-26adad180f8ada3a21038ddbc6fc1bfa43284ca3.tar.gz
Use libkolab bindings to compute recurring event instances + add tests for this
Diffstat (limited to 'pykolab/xml/utils.py')
-rw-r--r--pykolab/xml/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/xml/utils.py b/pykolab/xml/utils.py
index c09da54..c4d123c 100644
--- a/pykolab/xml/utils.py
+++ b/pykolab/xml/utils.py
@@ -21,6 +21,9 @@ def from_cdatetime(_cdatetime, with_timezone=True):
"""
Convert from kolabformat.cDateTime to datetime.date(time)
"""
+ if not _cdatetime.isValid():
+ return None
+
(
year,
month,