From d9b8fe686d2c9c11c8856d18b96b548c430fec70 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 7 Dec 2023 10:01:58 +0800 Subject: [PATCH] on second thought, no need to check if tz is 0 any time setting would have a non-zero utc offset since the hw RTC starts near epoch. it is sufficient to just check for that. --- services/dns/src/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/dns/src/time.rs b/services/dns/src/time.rs index 0b90ccb51..ed8ccc932 100644 --- a/services/dns/src/time.rs +++ b/services/dns/src/time.rs @@ -456,7 +456,7 @@ pub fn start_time_server() { } }), Some(TimeOp::WallClockTimeInit) => xous::msg_blocking_scalar_unpack!(msg, _, _, _, _, { - if utc_offset_ms == 0 && tz_offset_ms == 0 { + if utc_offset_ms == 0 { xous::return_scalar(msg.sender, 0).unwrap(); } else { xous::return_scalar(msg.sender, 1).unwrap();