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 8617e36 commit f1ac77a
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).astimezone(timezone.utc)
return datetime.fromtimestamp(rp / self.multiplier, tz=timezone.utc)

Check warning on line 185 in sekoia_automation/checkpoint.py

View check run for this annotation

Codecov / codecov/patch

sekoia_automation/checkpoint.py#L185

Added line #L185 was not covered by tests


class CheckpointCursor(Checkpoint):
Expand Down

0 comments on commit f1ac77a

Please sign in to comment.