From c61e32bec506b6599bb00427ef3960f236fbd64b Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Mon, 17 Apr 2023 14:43:10 +0200 Subject: [PATCH] Extent test to handle more distant dates --- src/offset/local/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/offset/local/mod.rs b/src/offset/local/mod.rs index 041a913b8a..c40ed17d70 100644 --- a/src/offset/local/mod.rs +++ b/src/offset/local/mod.rs @@ -208,7 +208,7 @@ mod tests { #[test] fn verify_correct_offsets_distant_past() { // let distant_past = Local::now() - Duration::days(365 * 100); - let distant_past = Local::now() - Duration::days(250 * 31); + let distant_past = Local::now() - Duration::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()); @@ -221,7 +221,7 @@ mod tests { #[test] fn verify_correct_offsets_distant_future() { - let distant_future = Local::now() + Duration::days(250 * 31); + let distant_future = Local::now() + Duration::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());