Skip to content

Commit

Permalink
Calendar: fix year month display bug (#15394)
Browse files Browse the repository at this point in the history
  • Loading branch information
QingDeng authored and iamkun committed May 7, 2019
1 parent e0f42be commit e5c73e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/calendar/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`;
},
Expand Down

0 comments on commit e5c73e8

Please sign in to comment.