diff --git a/crates/types/src/time.rs b/crates/types/src/time.rs index 7ac69938..96d77ba0 100644 --- a/crates/types/src/time.rs +++ b/crates/types/src/time.rs @@ -112,9 +112,8 @@ mod tests { const USEC_PER_SEC: i64 = 1_000_000; test_buf.put_i64((1_698_641_816 - TIME_SEC_CONVERSION) * USEC_PER_SEC); let got = TZTime::from_sql(&test_pg_type, &mut test_buf).unwrap(); - let want_date = "2023-10-30T04:56:56Z"; let want = TZTime( - DateTime::parse_from_rfc3339(want_date) + DateTime::parse_from_rfc3339("2023-10-30T04:56:56Z") .unwrap() .with_timezone(&Utc), );