Skip to content

Commit

Permalink
allow deprecated chrono function
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed Sep 4, 2023
1 parent 7b5f90b commit be50efa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filters/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl Timestamp {
};

// Create a normal DateTime from the NaiveDateTime
#[allow(deprecated)]
let datetime: DateTime<Utc> = DateTime::from_utc(naive, Utc);

let now = Utc::now();
Expand Down

0 comments on commit be50efa

Please sign in to comment.