From abf60d81384ed840d27cff0a7eb1ccafc0a9ea71 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Thu, 31 May 2018 10:00:14 +0200 Subject: [PATCH] Use first day of month to avoid getting higher numbers than the month has... (3773) --- src/components/date-picker/panel/Date/date-range.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/date-picker/panel/Date/date-range.vue b/src/components/date-picker/panel/Date/date-range.vue index 0cf6056f..9b925029 100644 --- a/src/components/date-picker/panel/Date/date-range.vue +++ b/src/components/date-picker/panel/Date/date-range.vue @@ -161,7 +161,7 @@ leftPickerTable: `${this.selectionMode}-table`, rightPickerTable: `${this.selectionMode}-table`, leftPanelDate: leftPanelDate, - rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, leftPanelDate.getDate()) + rightPanelDate: new Date(leftPanelDate.getFullYear(), leftPanelDate.getMonth() + 1, 1) }; }, computed: {