From 827ee615c1b0ceae826038e29fbc29821eb10eff Mon Sep 17 00:00:00 2001 From: Rayene123 Date: Sun, 9 Mar 2025 14:12:20 +0000 Subject: [PATCH 1/2] added the start , due , end hour --- client/components/cards/cardDate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js index 6e093d441..58550792e 100644 --- a/client/components/cards/cardDate.js +++ b/client/components/cards/cardDate.js @@ -322,19 +322,19 @@ CardCustomFieldDate.register('cardCustomFieldDate'); (class extends CardStartDate { showDate() { - return this.date.get().format('L'); + return this.date.get().format('YYYY-MM-DD HH:mm'); } }.register('minicardStartDate')); (class extends CardDueDate { showDate() { - return this.date.get().format('L'); + return this.date.get().format('YYYY-MM-DD HH:mm'); } }.register('minicardDueDate')); (class extends CardEndDate { showDate() { - return this.date.get().format('L'); + return this.date.get().format('YYYY-MM-DD HH:mm'); } }.register('minicardEndDate')); From 6d982cdfd92715438fde74921cc02cc2393506ac Mon Sep 17 00:00:00 2001 From: Rayene123 Date: Sun, 9 Mar 2025 14:15:17 +0000 Subject: [PATCH 2/2] formatted the date when storing it --- client/components/cards/cardDate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/components/cards/cardDate.js b/client/components/cards/cardDate.js index 58550792e..5d255614d 100644 --- a/client/components/cards/cardDate.js +++ b/client/components/cards/cardDate.js @@ -11,7 +11,7 @@ import { DatePicker } from '/client/lib/datepicker'; } _storeDate(date) { - this.card.setReceived(date); + this.card.setReceived(moment(date).format('YYYY-MM-DD HH:mm')); } _deleteDate() { @@ -37,7 +37,7 @@ import { DatePicker } from '/client/lib/datepicker'; } _storeDate(date) { - this.card.setStart(date); + this.card.setStart(moment(date).format('YYYY-MM-DD HH:mm')); } _deleteDate() { @@ -60,7 +60,7 @@ import { DatePicker } from '/client/lib/datepicker'; } _storeDate(date) { - this.card.setDue(date); + this.card.setDue(moment(date).format('YYYY-MM-DD HH:mm')); } _deleteDate() { @@ -83,7 +83,7 @@ import { DatePicker } from '/client/lib/datepicker'; } _storeDate(date) { - this.card.setEnd(date); + this.card.setEnd(moment(date).format('YYYY-MM-DD HH:mm')); } _deleteDate() {