From 3e1e680bbc7c727bd5300188b799486fbb003987 Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 10 Jun 2016 00:02:07 +0200 Subject: [PATCH] Use correct attribute name --- radicale/xmlutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index daaf8d7..5efba40 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -207,11 +207,11 @@ def _time_range_match(vobject_item, filter_, child_name): if start: start = datetime.strptime(start, "%Y%m%dT%H%M%SZ") else: - start = datetime.datetime.min + start = datetime.min if end: end = datetime.strptime(end, "%Y%m%dT%H%M%SZ") else: - end = datetime.datetime.max + end = datetime.max start = start.replace(tzinfo=timezone.utc) end = end.replace(tzinfo=timezone.utc) child = getattr(vobject_item, child_name.lower())