Skip to content

Commit

Permalink
fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Aug 8, 2023
1 parent a7b053d commit 4484b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/reservation-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export function calculateReservationDurationMinutes(
start_time: string,
end_time: string,
): number {
const startMoment = moment(start_time, 'hhmm');
const endMoment = moment(end_time, 'hhmm');
const startMoment = moment(start_time, 'HHmm');
const endMoment = moment(end_time, 'HHmm');
const momentDiff = moment.duration(endMoment.diff(startMoment));

return momentDiff.asMinutes();
Expand Down

0 comments on commit 4484b8d

Please sign in to comment.