Unverified Commit 0d44c68b authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Fix chrono deprecation (#2956)

## Motivation and Context
Chrono deprecated an API


----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 83df047f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ convert-time = ["aws-smithy-types", "time"]

[dependencies]
aws-smithy-types = { path = "../aws-smithy-types", optional = true }
chrono = { version = "0.4.23", optional = true, default-features = false, features = ["std"] }
chrono = { version = "0.4.26", optional = true, default-features = false, features = ["std"] }
time = { version = "0.3.4", optional = true }

[package.metadata.docs.rs]
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ impl DateTimeExt for DateTime {
                self.secs(),
                self.subsec_nanos()
            ))),
            Some(dt) => Ok(chrono::DateTime::<chrono::Utc>::from_utc(dt, chrono::Utc)),
            Some(dt) => Ok(chrono::TimeZone::from_utc_datetime(&chrono::Utc, &dt)),
        }
    }