From 707f3fc369f057afdeb222e914925b42cbee86a9 Mon Sep 17 00:00:00 2001 From: lvoloshyn-sekoia Date: Fri, 29 Nov 2024 14:01:03 +0200 Subject: [PATCH] Fix checkpoint for timestamps --- sekoia_automation/checkpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sekoia_automation/checkpoint.py b/sekoia_automation/checkpoint.py index 49126ef..e83e4b0 100644 --- a/sekoia_automation/checkpoint.py +++ b/sekoia_automation/checkpoint.py @@ -182,7 +182,7 @@ def from_datetime(self, dt) -> int: def to_datetime(self, rp: float | int) -> datetime: # timestamp -> inner representation - return datetime.fromtimestamp(rp / self.multiplier).replace(tzinfo=timezone.utc) + return datetime.fromtimestamp(rp / self.multiplier).astimezone(timezone.utc) class CheckpointCursor(Checkpoint):