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.
This commit is contained in:
bunnie 2023-12-07 10:01:58 +08:00
parent a36545073d
commit d9b8fe686d

View file

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