diff options
Diffstat (limited to 'cli/tools/upgrade.rs')
-rw-r--r-- | cli/tools/upgrade.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/tools/upgrade.rs b/cli/tools/upgrade.rs index b56be5c57..039e00b00 100644 --- a/cli/tools/upgrade.rs +++ b/cli/tools/upgrade.rs @@ -9,6 +9,7 @@ use crate::http_util::HttpClient; use crate::proc_state::ProcState; use crate::util::progress_bar::ProgressBar; use crate::util::progress_bar::ProgressBarStyle; +use crate::util::time; use crate::version; use deno_core::anyhow::bail; @@ -60,7 +61,7 @@ impl RealUpdateCheckerEnvironment { http_client, cache_file_path, // cache the current time - current_time: chrono::Utc::now(), + current_time: time::utc_now(), } } } @@ -702,7 +703,7 @@ mod test { file_text: Default::default(), current_version: Default::default(), latest_version: Arc::new(Mutex::new(Ok("".to_string()))), - time: Arc::new(Mutex::new(chrono::Utc::now())), + time: Arc::new(Mutex::new(crate::util::time::utc_now())), } } |