From 29bfbb33f1f9f8eac3361ed02c229873bf3202c9 Mon Sep 17 00:00:00 2001 From: shokobata <98646418+shokobata@users.noreply.github.com> Date: Sat, 4 Apr 2026 23:23:35 +0300 Subject: [PATCH] Fixed deprecation warning. --- src/bitrot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitrot.py b/src/bitrot.py index 3602e91..4548aff 100755 --- a/src/bitrot.py +++ b/src/bitrot.py @@ -70,7 +70,7 @@ def sha1(path, chunk_size): def ts(): - return datetime.datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S%z') + return datetime.datetime.now(datetime.UTC).strftime('%Y-%m-%d %H:%M:%S') def get_sqlite3_cursor(path, copy=False):