Skip to content

Commit

Permalink
Improved: code to send data in needed format(#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Dec 4, 2023
1 parent 732ff0a commit 96966d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CustomScheduleModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96966d7

Please sign in to comment.