OOT: UTC deprecation warning fix (#5983)

This commit is contained in:
josephwhite
2026-03-08 16:34:19 -04:00
committed by GitHub
parent b38548f89b
commit 53956b7d4d

View File

@@ -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)