From 511a1522a8e827851f992b578734d4356b609112 Mon Sep 17 00:00:00 2001 From: Tomaz Zaman Date: Thu, 13 Aug 2026 01:45:14 +0200 Subject: [PATCH 59/72] mono-update: use timezone-aware UTC for the latest.json date datetime.utcnow() is deprecated in Python 3.12+ and warns on every release. Switch to datetime.now(datetime.UTC); the strftime output (literal trailing Z) is byte-identical, so latest.json is unchanged. Co-Authored-By: Claude Opus 4.8 --- scripts/mono-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mono-update.sh b/scripts/mono-update.sh index 595e81b56f..d5e098f0ca 100755 --- a/scripts/mono-update.sh +++ b/scripts/mono-update.sh @@ -209,7 +209,7 @@ for name, p in prof.items(): # format_version lets the client reject a manifest shape it doesn't understand. json.dump({"format_version": 1, "tag": reltag, - "date": datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"), + "date": datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%dT%H:%M:%SZ"), "devices": devices}, sys.stdout, indent=2) PY -- 2.47.3