Skip to content

Commit

Permalink
fix utcnow deprecation (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes authored Oct 31, 2024
1 parent dd41f6a commit 2a31ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydrad/configure/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def date(self):
if hasattr(self, '_freeze_date') and self._freeze_date:
return self._date
else:
return datetime.datetime.utcnow().strftime('%Y-%m-%d_%H.%M.%S UTC')
return datetime.datetime.now(datetime.UTC).strftime('%Y-%m-%d_%H.%M.%S UTC')

@property
def templates(self,):
Expand Down

0 comments on commit 2a31ec1

Please sign in to comment.