Skip to content

Commit

Permalink
fix: replace deprecated function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Oct 17, 2023
1 parent bc4d88c commit d526b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph-subscriptions-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl TryFrom<(u64, u64, u128)> for Subscription {
let to_datetime = |t: u64| {
NaiveDateTime::from_timestamp_opt(t.try_into()?, 0)
.ok_or_else(|| anyhow!("invalid timestamp"))
.map(|t| DateTime::<Utc>::from_utc(t, Utc))
.map(|t| DateTime::<Utc>::from_naive_utc_and_offset(t, Utc))
};
let start = to_datetime(start)?;
let end = to_datetime(end)?;
Expand Down

0 comments on commit d526b37

Please sign in to comment.