Change date format to L (include 0 on short days/month)

pull/4491/head
Martin Filser 3 years ago
parent 2e5ec0308f
commit 441b3e9c0a
  1. 12
      client/components/cards/cardDate.js

@ -319,31 +319,31 @@ CardCustomFieldDate.register('cardCustomFieldDate');
(class extends CardReceivedDate { (class extends CardReceivedDate {
showDate() { showDate() {
return this.date.get().format('l'); return this.date.get().format('L');
} }
}.register('minicardReceivedDate')); }.register('minicardReceivedDate'));
(class extends CardStartDate { (class extends CardStartDate {
showDate() { showDate() {
return this.date.get().format('l'); return this.date.get().format('L');
} }
}.register('minicardStartDate')); }.register('minicardStartDate'));
(class extends CardDueDate { (class extends CardDueDate {
showDate() { showDate() {
return this.date.get().format('l'); return this.date.get().format('L');
} }
}.register('minicardDueDate')); }.register('minicardDueDate'));
(class extends CardEndDate { (class extends CardEndDate {
showDate() { showDate() {
return this.date.get().format('l'); return this.date.get().format('L');
} }
}.register('minicardEndDate')); }.register('minicardEndDate'));
(class extends CardCustomFieldDate { (class extends CardCustomFieldDate {
showDate() { showDate() {
return this.date.get().format('l'); return this.date.get().format('L');
} }
}.register('minicardCustomFieldDate')); }.register('minicardCustomFieldDate'));
@ -360,7 +360,7 @@ class VoteEndDate extends CardDate {
return classes; return classes;
} }
showDate() { showDate() {
return this.date.get().format('l LT'); return this.date.get().format('L LT');
} }
showTitle() { showTitle() {
return `${TAPi18n.__('card-end-on')} ${this.date.get().format('LLLL')}`; return `${TAPi18n.__('card-end-on')} ${this.date.get().format('LLLL')}`;

Loading…
Cancel
Save