Skip to content

Commit 14b7551

Browse files
rhinodavid6eDesign
authored andcommitted
🐛 Fix usage of Date.prototype.getYear (#33)
1 parent 5a8b9e9 commit 14b7551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Datepicker.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
6464
onMount(() => {
6565
month = selected.getMonth();
66-
year = selected.getYear();
66+
year = selected.getFullYear();
6767
});
6868
6969
function changeMonth(selectedMonth) {

0 commit comments

Comments
 (0)