Skip to content

Commit

Permalink
Remove usage of deprecated datetime.datetime.utcnow()
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlees committed Jan 2, 2025
1 parent 1cf7975 commit ba406f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bandersnatch/mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def synchronize(
sync_simple_index: bool = True,
) -> dict[str, set[str]]:
logger.info(f"Syncing with {self.master.url}.")
self.now = datetime.datetime.utcnow()
self.now = datetime.datetime.now(datetime.UTC)
# Lets ensure we get a new dict each run
# - others importing may not reset this like our main.py
self.altered_packages = {}
Expand Down

0 comments on commit ba406f1

Please sign in to comment.