From 0e4918523383d616a53fbd3acc45bdcfb2843a67 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sat, 9 Oct 2021 11:50:13 +0100 Subject: [PATCH] Try reducing bad year count a bit, as it breaks on some platforms --- src/meta/date.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/date.rs b/src/meta/date.rs index b76aa8d..56a2c01 100644 --- a/src/meta/date.rs +++ b/src/meta/date.rs @@ -314,7 +314,7 @@ mod test { // a) high enough to break chrono // b) not high enough to break SystemTime (as Duration::MAX would) let end_time = - time::SystemTime::UNIX_EPOCH + time::Duration::new(4437052 * 365 * 24 * 60 * 60, 0); + time::SystemTime::UNIX_EPOCH + time::Duration::new(343702 * 365 * 24 * 60 * 60, 0); let colors = Colors::new(ThemeOption::Default); let date = Date::from(end_time);