c2pa-rs

A fork of https://github.com/contentauth/c2pa-rs/
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/c2pa-rs.git
Log | Files | Refs | README

commit a53139813efdaa179bd5842483e795dbff66b8d9
parent ff49313c74e0a550664a12fbe02567372c22d853
Author: Eric Scouten <scouten@adobe.com>
Date:   Wed, 30 Aug 2023 11:02:40 -0700

(IGNORE) FIx deprecation warning in chrono crate (#297)


Diffstat:
Msdk/Cargo.toml | 2+-
Msdk/src/ocsp_utils.rs | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml @@ -64,7 +64,7 @@ blake3 = "1.0.0" bytes = "1.4.0" byteorder = { version = "1.4.3", default-features = false } byteordered = "0.6.0" -chrono = { version = "0.4.24", default-features = false, features = [ +chrono = { version = "0.4.27", default-features = false, features = [ "serde", "wasmbind", ] } diff --git a/sdk/src/ocsp_utils.rs b/sdk/src/ocsp_utils.rs @@ -136,7 +136,10 @@ pub fn get_ocsp_response(certs: &[Vec<u8>]) -> Option<OcspData> { let output = OcspData { ocsp_der: ocsp_rsp, - next_update: DateTime::from_utc(next_update, chrono::Utc), + next_update: DateTime::from_naive_utc_and_offset( + next_update, + chrono::Utc, + ), }; return Some(output);