Use first day of month to avoid getting higher numbers than the month has... (3773)

This commit is contained in:
Sergio Crisostomo 2018-05-31 10:00:14 +02:00
parent 9e375e6712
commit abf60d8138

View file

@ -161,7 +161,7 @@
leftPickerTable: `${this.selectionMode}-table`, leftPickerTable: `${this.selectionMode}-table`,
rightPickerTable: `${this.selectionMode}-table`, rightPickerTable: `${this.selectionMode}-table`,
leftPanelDate: leftPanelDate, leftPanelDate: leftPanelDate,
rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, leftPanelDate.getDate()) rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1)
}; };
}, },
computed: { computed: {