From cf08f935dcf1d848b83a973cb7f9dad6524eaa2d Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Thu, 23 Dec 2021 14:31:41 -0800 Subject: [PATCH] deps: update time to 0.3.5 (#643) Updates time to 0.3.5: https://github.com/time-rs/time/blob/main/CHANGELOG.md#035-2021-11-12 --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/utils/logging.rs | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 371cdc6c..2dedf3d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1445,9 +1445,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cde1cf55178e0293453ba2cca0d5f8392a922e52aa958aee9c28ed02becc6d03" +checksum = "41effe7cfa8af36f439fac33861b66b049edc6f9a32331e2312660529c1c24ad" dependencies = [ "itoa", "libc", diff --git a/Cargo.toml b/Cargo.toml index ad984e8a..effa6e39 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ serde = { version = "1.0.125", features = ["derive"] } # Sysinfo is still used in Linux for the ProcessStatus sysinfo = "0.18.2" thiserror = "1.0.24" -time = { version = "0.3.3", features = ["formatting", "local-offset", "macros"] } +time = { version = "0.3.5", features = ["formatting", "macros"] } toml = "0.5.8" tui = { version = "0.14.0", features = ["crossterm"], default-features = false } typed-builder = "0.9.0" diff --git a/src/utils/logging.rs b/src/utils/logging.rs index 2e021588..ed1578d2 100644 --- a/src/utils/logging.rs +++ b/src/utils/logging.rs @@ -4,6 +4,8 @@ pub fn init_logger( ) -> Result<(), fern::InitError> { fern::Dispatch::new() .format(|out, message, record| { + // Note we aren't using local time since it only works on single-threaded processes. + // If that ever does get patched in again, enable the "local-offset" feature. let offset = time::OffsetDateTime::now_utc(); out.finish(format_args!(