Closed ness-EE closed 6 years ago
@ness-EE this is by design.
For your use case, you'll want to set the forceLength
option to true
.
https://github.com/jsmreese/moment-duration-format#forcelength
Hi - thanks for the pointer! What's the thinking behind the design pattern? if I put 'hh' I expect it to be double digit, right? Is there something I might be missing?
It's based on defaulting to the most user-friendly output.
It's easier to read 5:00
than to read 05:00
or 0:05:00
. Show to the user only the information that is necessary, remove all else... the leading 0
padding is usually not required to comprehend the meaning.
Simple one:
It seems that making the day a single digit affects the formatting of the hour