diff options
Diffstat (limited to 'ext/kv/lib.rs')
-rw-r--r-- | ext/kv/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/kv/lib.rs b/ext/kv/lib.rs index 20f774033..fb68596fa 100644 --- a/ext/kv/lib.rs +++ b/ext/kv/lib.rs @@ -6,6 +6,7 @@ mod interface; mod proto; pub mod remote; pub mod sqlite; +mod time; use std::borrow::Cow; use std::cell::RefCell; @@ -14,7 +15,6 @@ use std::rc::Rc; use base64::prelude::BASE64_URL_SAFE; use base64::Engine; -use chrono::Utc; use codec::decode_key; use codec::encode_key; use deno_core::anyhow::Context; @@ -610,7 +610,7 @@ async fn op_kv_atomic_write<DBH>( where DBH: DatabaseHandler + 'static, { - let current_timestamp = Utc::now().timestamp_millis() as u64; + let current_timestamp = time::utc_now().timestamp_millis() as u64; let db = { let state = state.borrow(); let resource = |