Skip to content

Commit

Permalink
Don't use deprecated method in wasm test
Browse files Browse the repository at this point in the history
  • Loading branch information
pitdicker committed Jan 30, 2024
1 parent 02a96eb commit 3e6fa4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn now() {

// Ensure time set by the test script is correct
let now = env!("NOW");
let actual = Utc.datetime_from_str(&now, "%s").unwrap();
let actual = NaiveDateTime::parse_from_str(&now, "%s").unwrap().and_utc();
let diff = utc - actual;
assert!(
diff < chrono::Duration::minutes(5),
Expand Down

0 comments on commit 3e6fa4c

Please sign in to comment.