Merge pull request #113 from jfinkels/set-utc-tz-in-test

Explicitly set timezone UTC0 in a unit test
This commit is contained in:
Sylvestre Ledru
2025-02-08 20:59:03 +01:00
committed by GitHub
+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);