Set min/max year based on platform limitations 1901...2100.

This commit is contained in:
Leo Vasanko
2025-08-24 21:07:53 -06:00
parent 9a4d1c7196
commit cb7a111020
6 changed files with 92 additions and 46 deletions

View File

@@ -23,6 +23,9 @@ const monthAbbr = [
'nov',
'dec',
]
// Calendar year bounds (used instead of config.min_year / config.max_year)
const MIN_YEAR = 1901
const MAX_YEAR = 2100
// Core helpers ------------------------------------------------------------
/**
@@ -320,6 +323,8 @@ function formatTodayString(date) {
export {
// constants
monthAbbr,
MIN_YEAR,
MAX_YEAR,
DEFAULT_TZ,
// core tz helpers
makeTZDate,