Skip to content

Commit

Permalink
Don't force last_run to be UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
sedders123 committed Feb 8, 2025
1 parent 5653cf7 commit 645c295
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion phial/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ def get_next_run_time(self, last_run: datetime) -> datetime:
minute=self._at.minute,
second=self._at.second,
microsecond=0,
tzinfo=UTC,
)
if next_run <= datetime.now(tz=UTC):
next_run += timedelta(days=self._days)
Expand Down

0 comments on commit 645c295

Please sign in to comment.