Skip to content

Commit

Permalink
Fix yearOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronaut committed Apr 25, 2024
1 parent 5575d39 commit 5fe6689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/components/DateTimeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function timeToString(time: Date): string {
function yearOptions(): number[] {
const start = 2000;
const years: number[] = [];
for (let i = start; i <= (new Date()).getFullYear() - start + 11; i++) {
for (let i = start; i <= (new Date()).getFullYear() + 11; i++) {
years.push(i);
}
return years;
Expand Down

0 comments on commit 5fe6689

Please sign in to comment.