Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #625 from jeamland/jeamland/fix-deprecated-chrono
Browse files Browse the repository at this point in the history
Fix use of deprecated chrono function
  • Loading branch information
jeckersb authored May 21, 2024
2 parents 9a4743a + 9305ab4 commit 0f538a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/container/encapsulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use anyhow::{anyhow, Context, Result};
use camino::Utf8Path;
use cap_std::fs::Dir;
use cap_std_ext::cap_std;
use chrono::NaiveDateTime;
use chrono::DateTime;
use containers_image_proxy::oci_spec;
use flate2::Compression;
use fn_error_context::context;
Expand Down Expand Up @@ -169,7 +169,7 @@ fn build_oci(
let commit = repo.require_rev(rev)?;
let commit = commit.as_str();
let (commit_v, _) = repo.load_commit(commit)?;
let commit_timestamp = NaiveDateTime::from_timestamp_opt(
let commit_timestamp = DateTime::from_timestamp(
ostree::commit_get_timestamp(&commit_v).try_into().unwrap(),
0,
)
Expand Down

0 comments on commit 0f538a8

Please sign in to comment.