Use crosstime git instead of local
This commit is contained in:
parent
3948597cd9
commit
c562d2f22e
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue