From 598b8a4af9e88113f7a56b9ca3c4a25cd4b646d3 Mon Sep 17 00:00:00 2001 From: Myriad-Dreamin Date: Sun, 29 Dec 2024 11:27:00 +0800 Subject: [PATCH] fix: path --- crates/reflexo/src/time.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/reflexo/src/time.rs b/crates/reflexo/src/time.rs index 48976511..0a439fe8 100644 --- a/crates/reflexo/src/time.rs +++ b/crates/reflexo/src/time.rs @@ -2,7 +2,7 @@ pub use std::time::SystemTime as Time; pub use web_time::Duration; pub use web_time::Instant; -/// Returns the current time (UTC+0). +/// Returns the current system time (UTC+0). #[cfg(any(feature = "system", feature = "web"))] pub fn now() -> Time { #[cfg(not(all(target_family = "wasm", target_os = "unknown")))] @@ -11,7 +11,7 @@ pub fn now() -> Time { } #[cfg(all(target_family = "wasm", target_os = "unknown"))] { - use web_time::SystemTimeExt; + use web_time::web::SystemTimeExt; web_time::SystemTime::now().to_std() } }