Skip to content

Commit

Permalink
Fixed chrono deprecation warning on NaiveDateTime.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdeantoni committed Apr 13, 2024
1 parent 6dc8dcd commit c8ab2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wkt-types/src/pbtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ impl From<NaiveDateTime> for Timestamp {
fn from(dt: NaiveDateTime) -> Self {
Timestamp {
seconds: dt.and_utc().timestamp(),
nanos: dt.timestamp_subsec_nanos() as i32,
nanos: dt.and_utc().timestamp_subsec_nanos() as i32,
}
}
}
Expand Down

0 comments on commit c8ab2b7

Please sign in to comment.