Skip to content

Commit

Permalink
fix: path
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Dec 29, 2024
1 parent defd9d3 commit 598b8a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/reflexo/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))]
Expand All @@ -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()
}
}
Expand Down

0 comments on commit 598b8a4

Please sign in to comment.