Skip to content

Commit

Permalink
PR feedback implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
Clerise Swart committed Dec 20, 2024
1 parent 33a3343 commit 3fe5a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/delivery-options/src/utils/stringToDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const stringToDate = (date: string): Date => {
/**
* Split the time into individual components and convert them to numbers.
*
* @example ['08', '00', '00'] -> [8, 0, 0]
* @example 08:00:00 -> [8, 0, 0]
*/
const [hours, minutes, seconds] = timeWithoutDate.split(':').map(Number);

Expand Down

0 comments on commit 3fe5a42

Please sign in to comment.