Skip to content

Commit

Permalink
deferred timestamp without microsecond
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaChuvaev committed Mar 15, 2024
1 parent 912f7aa commit 45f8694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sharded_queue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def calculate_timestamp(
if isinstance(delta, str):
return rrulestr(delta).after(datetime.now()).timestamp()

now: datetime = datetime.now()
now: datetime = datetime.now().replace(microsecond=0)
if isinstance(delta, timedelta):
now = now + delta

Expand Down

0 comments on commit 45f8694

Please sign in to comment.