From 1e4c2846010c8f931955c6118b2b2bc7eab48a1e Mon Sep 17 00:00:00 2001 From: Will Barnes Date: Thu, 31 Oct 2024 12:25:56 -0500 Subject: [PATCH] fix utcnow deprecation --- pydrad/configure/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydrad/configure/configure.py b/pydrad/configure/configure.py index 58496d2..2823de7 100644 --- a/pydrad/configure/configure.py +++ b/pydrad/configure/configure.py @@ -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,):