Explicitly set timezone UTC0 in a unit test

This commit is contained in:
Jeffrey Finkelstein
2025-01-30 21:34:30 -05:00
parent 073b9f7b70
commit 5c0c9c4405
+1
View File
@@ -363,6 +363,7 @@ mod tests {
#[test]
fn single_digit_month_day() {
std::env::set_var("TZ", "UTC");
let x = Local.with_ymd_and_hms(1987, 5, 7, 0, 0, 0).unwrap();
let expected = DateTime::fixed_offset(&x);