From c562d2f22e3ab1c7f8e303524b3ca23203f3adef Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Sun, 6 Mar 2022 12:17:15 -0500 Subject: [PATCH] Use crosstime git instead of local --- Cargo.toml | 2 +- src/validation.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 310c5f3..6a317d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ base64 = "0.13" pem = { version = "1", optional = true } simple_asn1 = { version = "0.6", optional = true } time = "0.3" -wasm-time = { path = "../wasm-time" } +crosstime = { git = "https://git.pfaff.dev/michael/crosstime-rs.git" } [dev-dependencies] # For the custom time example diff --git a/src/validation.rs b/src/validation.rs index dc32189..c1a478b 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -138,7 +138,7 @@ impl Default for Validation { /// Gets the current timestamp in the format JWT expect pub fn get_current_timestamp() -> u64 { - let start = wasm_time::now_utc(); + let start = crosstime::now_utc(); let secs = (start - time::OffsetDateTime::UNIX_EPOCH).whole_seconds(); assert!(secs >= 0, "Time went backwards."); secs as u64