From 7d78ddec4f54e0d95de6839f07d6c9d1e2002bfb Mon Sep 17 00:00:00 2001 From: John Whittington Date: Mon, 8 Jan 2024 09:18:18 +0100 Subject: [PATCH] fix 3.12 utcnow depreciation --- openant/fs/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openant/fs/manager.py b/openant/fs/manager.py index 2d76396..495f560 100644 --- a/openant/fs/manager.py +++ b/openant/fs/manager.py @@ -332,7 +332,7 @@ def download_directory(self, callback=None): data = self.download(0, callback) return Directory.parse(data) - def set_time(self, time=datetime.datetime.utcnow()): + def set_time(self, time=datetime.datetime.now(datetime.UTC)): """ :param time: datetime in UTC, or None to set to current time """