diff --git a/tests/wasm.rs b/tests/wasm.rs index b534f0a315..28eaacd0d5 100644 --- a/tests/wasm.rs +++ b/tests/wasm.rs @@ -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),