Use crosstime git instead of local

This commit is contained in:
Michael Pfaff 2022-03-06 12:17:15 -05:00
parent 3948597cd9
commit c562d2f22e
Signed by: michael
GPG Key ID: F1A27427218FCA77
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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