diff --git a/pygeofilter/backends/native/evaluate.py b/pygeofilter/backends/native/evaluate.py index b72cdc4..623e88a 100644 --- a/pygeofilter/backends/native/evaluate.py +++ b/pygeofilter/backends/native/evaluate.py @@ -329,15 +329,15 @@ def to_interval(value: MaybeInterval) -> InternalInterval: return (low, high) + elif isinstance(value, datetime): + return (value, value) + elif isinstance(value, date): return ( datetime.combine(value, time.min, timezone.utc), datetime.combine(value, time.max, timezone.utc), ) - elif isinstance(value, datetime): - return (value, value) - elif value is None: return (None, None)