Try reducing bad year count a bit, as it breaks on some platforms

This commit is contained in:
Tom Parker-Shemilt 2021-10-09 11:50:13 +01:00 committed by Wei Zhang
parent 820b41a7ef
commit 0e49185233

View file

@ -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);