diff --git a/xocto/ranges.py b/xocto/ranges.py index 60c9f62..5dcb25a 100644 --- a/xocto/ranges.py +++ b/xocto/ranges.py @@ -861,7 +861,7 @@ def intersection( if left.end <= right.start: return None else: - return FiniteDatetimeRange(right.start, min(left.end, right.end)) + return FiniteDatetimeRange(right.start, min(right.end, left.end)) base_intersection = super().intersection(other) if base_intersection is None: