mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
commit
9592ec3a66
1 changed files with 2 additions and 2 deletions
|
@ -207,11 +207,11 @@ def _time_range_match(vobject_item, filter_, child_name):
|
||||||
if start:
|
if start:
|
||||||
start = datetime.strptime(start, "%Y%m%dT%H%M%SZ")
|
start = datetime.strptime(start, "%Y%m%dT%H%M%SZ")
|
||||||
else:
|
else:
|
||||||
start = datetime.datetime.min
|
start = datetime.min
|
||||||
if end:
|
if end:
|
||||||
end = datetime.strptime(end, "%Y%m%dT%H%M%SZ")
|
end = datetime.strptime(end, "%Y%m%dT%H%M%SZ")
|
||||||
else:
|
else:
|
||||||
end = datetime.datetime.max
|
end = datetime.max
|
||||||
start = start.replace(tzinfo=timezone.utc)
|
start = start.replace(tzinfo=timezone.utc)
|
||||||
end = end.replace(tzinfo=timezone.utc)
|
end = end.replace(tzinfo=timezone.utc)
|
||||||
child = getattr(vobject_item, child_name.lower())
|
child = getattr(vobject_item, child_name.lower())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue