From 38edc494646f379537c553214d8b1b0f1e614e82 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Mon, 17 Apr 2023 14:43:10 +0200 Subject: [PATCH] Extend test to more distant dates --- src/offset/local/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/offset/local/mod.rs b/src/offset/local/mod.rs index 51bd852ef7..37e78898c9 100644 --- a/src/offset/local/mod.rs +++ b/src/offset/local/mod.rs @@ -292,8 +292,7 @@ mod tests { #[test] fn verify_correct_offsets_distant_past() { - // let distant_past = Local::now() - TimeDelta::days(365 * 100); - let distant_past = Local::now() - TimeDelta::days(250 * 31); + let distant_past = Local::now() - TimeDelta::days(365 * 500); let from_local = Local.from_local_datetime(&distant_past.naive_local()).unwrap(); let from_utc = Local.from_utc_datetime(&distant_past.naive_utc()); @@ -306,7 +305,7 @@ mod tests { #[test] fn verify_correct_offsets_distant_future() { - let distant_future = Local::now() + TimeDelta::days(250 * 31); + let distant_future = Local::now() + TimeDelta::days(365 * 35000); let from_local = Local.from_local_datetime(&distant_future.naive_local()).unwrap(); let from_utc = Local.from_utc_datetime(&distant_future.naive_utc());