Skip to content

Commit

Permalink
fixup! Fix deprecated classmethod datetime.utcnow
Browse files Browse the repository at this point in the history
  • Loading branch information
dochang committed Jul 24, 2024
1 parent 789055e commit 9bfcb34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumplus/bumplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import logging
import os
from datetime import UTC, datetime
from datetime import datetime, timezone

import jinja2

Expand Down Expand Up @@ -67,7 +67,7 @@ def bump_version(self, new_version):
"old_version": self.config["version"],
"new_version": new_version,
"now": datetime.now(),
"utcnow": datetime.now(UTC),
"utcnow": datetime.now(timezone.utc),
}
for fname in self.config["files"]:
self.replace_file(tmpl_vars, fname, self.config["files"][fname])
Expand Down

0 comments on commit 9bfcb34

Please sign in to comment.