Skip to content

Commit

Permalink
fix utcnow deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Feb 24, 2025
1 parent 0d03c06 commit 6112433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tooling/src/hypothesistooling/releasemanagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"""

import re
from datetime import datetime
from datetime import datetime, timezone

import hypothesistooling as tools

Expand All @@ -30,7 +30,7 @@ def release_date_string():
through a release."""
global __RELEASE_DATE_STRING
if __RELEASE_DATE_STRING is None:
__RELEASE_DATE_STRING = datetime.utcnow().strftime("%Y-%m-%d")
__RELEASE_DATE_STRING = datetime.now(timezone.utc).strftime("%Y-%m-%d")
return __RELEASE_DATE_STRING


Expand Down

0 comments on commit 6112433

Please sign in to comment.