Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SharifClick committed Dec 20, 2019
1 parent 0672779 commit 8b1dd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DatePicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
let day = Math.min(date.getDate(), maxDayInSelectedMonth)
newDate = new Date(date.getFullYear(), changedData, day)
} else if (type === 'year') {
let maxDayInSelectedMonth = new Date(1900 + changedData, date.getMonth() + 1, 0).getDate()
let maxDayInSelectedMonth = new Date(years_map[1] + changedData, date.getMonth() + 1, 0).getDate()
let day = Math.min(date.getDate(), maxDayInSelectedMonth)
newDate = new Date(1900 + changedData, date.getMonth(), day)
Expand Down

0 comments on commit 8b1dd04

Please sign in to comment.