Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 4f41aba

Browse files
build(deps): bump chrono from 0.4.26 to 0.4.27 (#5171)
* build(deps): bump chrono from 0.4.26 to 0.4.27 Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.26 to 0.4.27. - [Release notes](https://github.com/chronotope/chrono/releases) - [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md) - [Commits](chronotope/chrono@v0.4.26...v0.4.27) --- updated-dependencies: - dependency-name: chrono dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update to non-deprecated chronos function --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Cinque <[email protected]>
1 parent 433eb86 commit 4f41aba

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

feature-proposal/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "Apache-2.0"
88
edition = "2021"
99

1010
[dependencies]
11-
chrono = "0.4.26"
11+
chrono = "0.4.27"
1212
clap = "2.33.3"
1313
solana-clap-utils = "1.16.3"
1414
solana-cli-config = "1.16.3"

feature-proposal/cli/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ fn unix_timestamp_to_string(unix_timestamp: UnixTimestamp) -> String {
250250
format!(
251251
"{} (UnixTimestamp: {})",
252252
match NaiveDateTime::from_timestamp_opt(unix_timestamp, 0) {
253-
Some(ndt) =>
254-
DateTime::<Utc>::from_utc(ndt, Utc).to_rfc3339_opts(SecondsFormat::Secs, true),
253+
Some(ndt) => DateTime::<Utc>::from_naive_utc_and_offset(ndt, Utc)
254+
.to_rfc3339_opts(SecondsFormat::Secs, true),
255255
None => "unknown".to_string(),
256256
},
257257
unix_timestamp,

0 commit comments

Comments
 (0)