Skip to content

Commit

Permalink
Fix checkpoint for timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
lvoloshyn-sekoia committed Nov 29, 2024
1 parent ad04fd8 commit 707f3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sekoia_automation/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 707f3fc

Please sign in to comment.