They might have utilized the "left-pad" npm package to pad zeroes, but the last time everyone used that, half of the Internet ended up with broken builds. So they just stopped trying and left the know-how of how to pad strings in the deep internals of an obscure npm package.
Lol I have this as well in some software I wrote using C++ and SYSTEMTIME from the ms docs, I use it like hour:minute:second but it displays like that too and pisses me off