Skip to content

Commit bcf5419

Browse files
fix return for hours input 01to09 as 0${hours}:${minutes} am;
1 parent 62033c7 commit bcf5419

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎format-clock-edge-cases/timeConverter.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function formatAs12HourClock(time) {
1515
else if (hours < 1) {
1616
return `12:${minutes} am`;
1717
}
18-
return `${hours}:${minutes} am`;
18+
return `0${hours}:${minutes} am`;
1919
}
2020

2121

0 commit comments

Comments
 (0)