Skip to content

Commit

Permalink
build(deps): bump chrono from 0.4.26 to 0.4.27 (#5171)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
dependabot[bot] and joncinque authored Aug 30, 2023
1 parent 433eb86 commit 4f41aba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion feature-proposal/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "Apache-2.0"
edition = "2021"

[dependencies]
chrono = "0.4.26"
chrono = "0.4.27"
clap = "2.33.3"
solana-clap-utils = "1.16.3"
solana-cli-config = "1.16.3"
Expand Down
4 changes: 2 additions & 2 deletions feature-proposal/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ fn unix_timestamp_to_string(unix_timestamp: UnixTimestamp) -> String {
format!(
"{} (UnixTimestamp: {})",
match NaiveDateTime::from_timestamp_opt(unix_timestamp, 0) {
Some(ndt) =>
DateTime::<Utc>::from_utc(ndt, Utc).to_rfc3339_opts(SecondsFormat::Secs, true),
Some(ndt) => DateTime::<Utc>::from_naive_utc_and_offset(ndt, Utc)
.to_rfc3339_opts(SecondsFormat::Secs, true),
None => "unknown".to_string(),
},
unix_timestamp,
Expand Down

0 comments on commit 4f41aba

Please sign in to comment.