Don't use deprecated method in wasm test

This commit is contained in:
Paul Dicker 2024-01-28 21:37:59 +01:00 committed by Paul Dicker
parent 02a96eba57
commit 3e6fa4c0df

View File

@ -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),