From 96966d7a529ad986f9ee9b2b52795ae69ee66de2 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Mon, 4 Dec 2023 19:34:45 +0530 Subject: [PATCH] Improved: code to send data in needed format(#44) --- src/components/CustomScheduleModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CustomScheduleModal.vue b/src/components/CustomScheduleModal.vue index 1f875fbe..479c66d9 100644 --- a/src/components/CustomScheduleModal.vue +++ b/src/components/CustomScheduleModal.vue @@ -202,7 +202,7 @@ export default defineComponent({ } } else { this.days.map((day: string) => { - const startTime = this.selectedTimesForWeek[day+'StartTime'] + const startTime = DateTime.fromISO(this.selectedTimesForWeek[day+'StartTime'], {setZone: true}).toFormat('HH:mm:ss') const capacity = this.getCapacity(this.selectedTimesForWeek[day+'StartTime'], this.selectedTimesForWeek[day+'EndTime']) if(startTime && capacity) { payload[day+'StartTime'] = startTime