fix(datetime): fix year to allow current and max year

fixes #14895
This commit is contained in:
Sean Perkins
2018-08-29 14:26:32 -04:00
committed by Brandy Carney
parent 5da388a4de
commit f30ae889c0
2 changed files with 11 additions and 1 deletions

View File

@ -105,7 +105,7 @@ export function dateValueRange(format: string, min: DatetimeData, max: DatetimeD
throw new Error('min and max year is undefined');
}
for (let i = max.year - 1; i >= min.year; i--) {
for (let i = max.year; i >= min.year; i--) {
opts.push(i);
}