From d14605666c12a207a62d870f3522a88b06d8c89a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 31 Aug 2023 16:58:06 -0600 Subject: [PATCH] build(deps): bump chrono from 0.4.26 to 0.4.28 (#33094) * build(deps): bump chrono from 0.4.26 to 0.4.28 Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.26 to 0.4.28. - [Release notes](https://github.com/chronotope/chrono/releases) - [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md) - [Commits](https://github.com/chronotope/chrono/compare/v0.4.26...v0.4.28) --- updated-dependencies: - dependency-name: chrono dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * [auto-commit] Update all Cargo lock files * Switch from deprecated chrono api --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot-buildkite Co-authored-by: Tyera Eulberg --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- cli-output/src/display.rs | 6 ++++-- programs/sbf/Cargo.lock | 6 +++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a529d4239..a63703655 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1017,9 +1017,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.26" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" +checksum = "95ed24df0632f708f5f6d8082675bef2596f7084dee3dd55f632290bf35bfe0f" dependencies = [ "android-tzdata", "iana-time-zone", @@ -1028,7 +1028,7 @@ dependencies = [ "serde", "time 0.1.43", "wasm-bindgen", - "winapi 0.3.9", + "windows-targets 0.48.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index b83142e6e..59751edc7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -158,7 +158,7 @@ bzip2 = "0.4.4" caps = "0.5.5" cargo_metadata = "0.15.4" cc = "1.0.83" -chrono = { version = "0.4.26", default-features = false } +chrono = { version = "0.4.28", default-features = false } chrono-humanize = "0.2.3" clap = "2.33.1" console = "0.15.7" diff --git a/cli-output/src/display.rs b/cli-output/src/display.rs index 1351f4232..a157cec8d 100644 --- a/cli-output/src/display.rs +++ b/cli-output/src/display.rs @@ -1,7 +1,7 @@ use { crate::cli_output::CliSignatureVerificationStatus, base64::{prelude::BASE64_STANDARD, Engine}, - chrono::{DateTime, Local, NaiveDateTime, SecondsFormat, TimeZone, Utc}, + chrono::{Local, NaiveDateTime, SecondsFormat, TimeZone, Utc}, console::style, indicatif::{ProgressBar, ProgressStyle}, solana_cli_config::SettingType, @@ -716,7 +716,9 @@ pub fn new_spinner_progress_bar() -> ProgressBar { pub fn unix_timestamp_to_string(unix_timestamp: UnixTimestamp) -> String { match NaiveDateTime::from_timestamp_opt(unix_timestamp, 0) { - Some(ndt) => DateTime::::from_utc(ndt, Utc).to_rfc3339_opts(SecondsFormat::Secs, true), + Some(ndt) => Utc + .from_utc_datetime(&ndt) + .to_rfc3339_opts(SecondsFormat::Secs, true), None => format!("UnixTimestamp {unix_timestamp}"), } } diff --git a/programs/sbf/Cargo.lock b/programs/sbf/Cargo.lock index 3dda2d33f..9642503de 100644 --- a/programs/sbf/Cargo.lock +++ b/programs/sbf/Cargo.lock @@ -901,9 +901,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.26" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5" +checksum = "95ed24df0632f708f5f6d8082675bef2596f7084dee3dd55f632290bf35bfe0f" dependencies = [ "android-tzdata", "iana-time-zone", @@ -912,7 +912,7 @@ dependencies = [ "serde", "time 0.1.43", "wasm-bindgen", - "winapi 0.3.9", + "windows-targets 0.48.0", ] [[package]]