Skip to content

replace deprecated chrono::DateTime::from_utc #1077

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

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

ds-cbo
Copy link
Contributor

@ds-cbo ds-cbo commented Oct 30, 2023

Fixes the test run failing in https://github.com/sfackler/rust-postgres/actions/runs/6589121392/job/17903210060?pr=1074 for pull request #1074

error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead
  --> postgres-types/src/chrono_04.rs:43:22
   |
43 |         Ok(DateTime::from_utc(naive, Utc))
   |                      ^^^^^^^^
   |
   = note: `-D deprecated` implied by `-D warnings`

error: could not compile `postgres-types` (lib) due to previous error

@ds-cbo
Copy link
Contributor Author

ds-cbo commented Oct 31, 2023

I'm sorry for the failed CI runs, but I still can't seem to make the Docker work locally to run the tests. Let's hope third time's the charm

@sfackler sfackler merged commit ab23ca8 into sfackler:master Oct 31, 2023
@ds-cbo ds-cbo deleted the fix-deprecated-chrono-func branch November 2, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants