Skip to content

Commit

Permalink
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 dde7c1a commit 60dde80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Fixed

- Deprecated classmethod `datetime.utcnow`

## [0.12.0] - 2024-02-29

### Added
Expand Down
2 changes: 1 addition & 1 deletion bumplus/bumplus.py
Original file line number Diff line number Diff line change
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.utcnow(),
"utcnow": datetime.now(datetime.UTC),
}
for fname in self.config["files"]:
self.replace_file(tmpl_vars, fname, self.config["files"][fname])
Expand Down

0 comments on commit 60dde80

Please sign in to comment.