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
This commit is contained in:
Clement Tsang 2021-12-23 14:31:41 -08:00 committed by GitHub
parent 3fefcdbb11
commit cf08f935dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

4
Cargo.lock generated
View file

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

View file

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

View file

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