Commit e5c73e8e authored by QingDeng's avatar QingDeng Committed by iamkun

Calendar: fix year month display bug (#15394)

parent e0f42be5
......@@ -146,8 +146,8 @@ export default {
},
i18nDate() {
const year = this.formatedDate.slice(0, 4);
const month = this.formatedDate.slice(5, 7).replace('0', '');
const year = this.date.getFullYear();
const month = this.date.getMonth() + 1;
return `${year} ${this.t('el.datepicker.year')} ${this.t('el.datepicker.month' + month)}`;
},
......
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