From 441b3e9c0a50b21da2c875946ff1059a14ce04e4 Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Wed, 27 Apr 2022 13:03:01 +0200 Subject: [PATCH] Change date format to L (include 0 on short days/month) --- client/components/cards/cardDate.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js index 40002dd73..01abe9279 100644 --- a/client/components/cards/cardDate.js +++ b/client/components/cards/cardDate.js @@ -319,31 +319,31 @@ CardCustomFieldDate.register('cardCustomFieldDate'); (class extends CardReceivedDate { showDate() { - return this.date.get().format('l'); + return this.date.get().format('L'); } }.register('minicardReceivedDate')); (class extends CardStartDate { showDate() { - return this.date.get().format('l'); + return this.date.get().format('L'); } }.register('minicardStartDate')); (class extends CardDueDate { showDate() { - return this.date.get().format('l'); + return this.date.get().format('L'); } }.register('minicardDueDate')); (class extends CardEndDate { showDate() { - return this.date.get().format('l'); + return this.date.get().format('L'); } }.register('minicardEndDate')); (class extends CardCustomFieldDate { showDate() { - return this.date.get().format('l'); + return this.date.get().format('L'); } }.register('minicardCustomFieldDate')); @@ -360,7 +360,7 @@ class VoteEndDate extends CardDate { return classes; } showDate() { - return this.date.get().format('l LT'); + return this.date.get().format('L LT'); } showTitle() { return `${TAPi18n.__('card-end-on')} ${this.date.get().format('LLLL')}`;