Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update object_store chrono deprecations #4786

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented Sep 7, 2023

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the object-store Object Store Interface label Sep 7, 2023
@@ -32,8 +32,9 @@ where
D: serde::Deserializer<'de>,
{
let s: String = serde::Deserialize::deserialize(deserializer)?;
chrono::TimeZone::datetime_from_str(&chrono::Utc, &s, RFC1123_FMT)
.map_err(serde::de::Error::custom)
let naive = chrono::NaiveDateTime::parse_from_str(&s, RFC1123_FMT)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RFC1123_FMT does not contain a timezone, it is fixed to GMT

@tustvold tustvold merged commit 0847c9a into apache:master Sep 7, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants