Skip to content

Commit

Permalink
Avoid deprecated chrono method
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Sep 7, 2023
1 parent f0d4ea1 commit 9525c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vector/feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ impl<'a> Feature<'a> {
let dv = value
.and_hms_opt(0, 0, 0)
.ok_or_else(|| GdalError::DateError("offset to midnight".into()))?;
let dt = DateTime::from_utc(
let dt = DateTime::from_naive_utc_and_offset(
dv,
FixedOffset::east_opt(0)
.ok_or_else(|| GdalError::DateError("utc offset".into()))?,
Expand Down

0 comments on commit 9525c8b

Please sign in to comment.