We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd75584 commit bc7784eCopy full SHA for bc7784e
1 file changed
Sprint-2/5-stretch-extend/format-time.js
@@ -15,7 +15,7 @@ function formatAs12HourClock(time) {
15
}
16
17
if (hours > 12) {
18
- return `${hours - 12}:${minutes} pm`;
+ return `${String(hours - 12).padStart(2, "0")}:${minutes} pm`;
19
20
21
return `${time} am`;
0 commit comments