From 53956b7d4d21356bd6bd6fbea9addca3231fd448 Mon Sep 17 00:00:00 2001 From: josephwhite <22449090+josephwhite@users.noreply.github.com> Date: Sun, 8 Mar 2026 16:34:19 -0400 Subject: [PATCH] OOT: UTC deprecation warning fix (#5983) --- worlds/oot/Patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/oot/Patches.py b/worlds/oot/Patches.py index db7be3d4dd..98bb44efc8 100644 --- a/worlds/oot/Patches.py +++ b/worlds/oot/Patches.py @@ -272,7 +272,7 @@ def patch_rom(world, rom): world_str = "" rom.write_bytes(rom.sym('WORLD_STRING_TXT'), makebytes(world_str, 12)) - time_str = datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M") + " UTC" + time_str = datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d %H:%M") + " UTC" rom.write_bytes(rom.sym('TIME_STRING_TXT'), makebytes(time_str, 25)) rom.write_byte(rom.sym('CFG_SHOW_SETTING_INFO'), 0x01)