Set min/max year based on platform limitations 1901...2100.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user