From dde04808aa1298a457b8c2e38c974ff44c8b2a0e Mon Sep 17 00:00:00 2001 From: rumbledethumps <16963588+rumbledethumps@users.noreply.github.com> Date: Sun, 7 Dec 2025 11:42:02 -0800 Subject: [PATCH] the bytes, they need saving --- libsrc/rp6502/_localtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/rp6502/_localtime.c b/libsrc/rp6502/_localtime.c index 2b3cb013f..8c76e3a26 100644 --- a/libsrc/rp6502/_localtime.c +++ b/libsrc/rp6502/_localtime.c @@ -8,9 +8,9 @@ struct tm* __fastcall__ _time_t_to_tm (const time_t t); struct tm* __fastcall__ _localtime (const time_t* timep) { - time_t time = *timep; struct tm* tm; - ria_set_axsreg (*timep); + time_t time = *timep; + ria_set_axsreg (time); time += ria_call_long (RIA_OP_TZQUERY); tm = _time_t_to_tm (time); tm->tm_isdst = ria_pop_char ();