3 ms·
> Easy fix: That converts "0800" into "00:00AM".
by thaumasiotes 2y ago
> Easy fix:
That converts "0800" into "00:00AM".
- thangalin 2y agoTrue enough, the regex was overzealous. This looks better: time = time.replace( /^0*(0:)+/, '24' );
3 ms·