Commit b12695ff authored by iamkun's avatar iamkun Committed by GitHub

Calendar: fix locale error

parent 474ad251
...@@ -188,7 +188,8 @@ export default { ...@@ -188,7 +188,8 @@ export default {
date() { date() {
if (!this.value) { if (!this.value) {
if (this.realSelectedDay) { if (this.realSelectedDay) {
return new Date(this.selectedDay); const d = this.selectedDay.split('-');
return new Date(d[0], d[1] - 1, d[2]);
} else if (this.validatedRange.length) { } else if (this.validatedRange.length) {
return this.validatedRange[0][0]; return this.validatedRange[0][0];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment