From 9183ffe873628c72072d027789a3f30d2ac222da Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Wed, 27 Aug 2025 11:15:09 -0600 Subject: [PATCH] Adjust year limits from 1582 when Gregorian calendar was first introduced to 3000 which ought to be enough. --- src/utils/date.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/date.js b/src/utils/date.js index 7409e94..a8dc414 100644 --- a/src/utils/date.js +++ b/src/utils/date.js @@ -23,8 +23,9 @@ const monthAbbr = [ 'nov', 'dec', ] -const MIN_YEAR = 1000 -const MAX_YEAR = 9999 +// We get scrolling issues if the virtual view is bigger than that +const MIN_YEAR = 1582 +const MAX_YEAR = 3000 // Core helpers ------------------------------------------------------------ /**