From c9c6bf151eb6e9f13f25d942e3562b067bf760de Mon Sep 17 00:00:00 2001 From: fengyc Date: Thu, 24 Oct 2024 13:11:25 +0800 Subject: [PATCH] fix: convert error --- pisugar-server/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisugar-server/src/main.rs b/pisugar-server/src/main.rs index 4a2fce4..b264db1 100644 --- a/pisugar-server/src/main.rs +++ b/pisugar-server/src/main.rs @@ -272,7 +272,7 @@ fn handle_request(core: Arc>, req: &str) -> String { Ok(ntp_datetime) => { sys_write_time(ntp_datetime.into()); if let Ok(core) = core_cloned.lock() { - let _ = core.write_time(dt.into()); + let _ = core.write_time(ntp_datetime.into()); } } Err(e) => log::warn!("Sync NTP time error: {}", e)