Skip to content

Commit

Permalink
Merge pull request #318 from adrianreber/2024-12-19-chrono
Browse files Browse the repository at this point in the history
Update chrono to 0.4.39
  • Loading branch information
adrianreber authored Dec 19, 2024
2 parents c937007 + 0ab880d commit 4d4acfb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ lto = true
hyper = { version = "0.14", features = ["server", "http1", "http2", "runtime"] }
log = "0.4"
pretty_env_logger = "0.5"
chrono = "0.4"
chrono = "0.4.39"
protobuf = "3.7.1"
url = "2.5.4"
regex = "1"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/mirrorlist-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ async fn main() {
}
});

if let Some(t) = chrono::NaiveDateTime::from_timestamp_opt(mirrorlist.Time.unwrap() as i64, 0) {
if let Some(t) = chrono::DateTime::from_timestamp(mirrorlist.Time.unwrap() as i64, 0) {
info!("Database creation time {} ({}) ", t, &mirrorlist.Time.unwrap());
}

Expand Down

0 comments on commit 4d4acfb

Please sign in to comment.