gr2m / moment-parseformat

A moment.js plugin to extract the format of a date/time string
http://gr2m.github.io/moment-parseformat
Apache License 2.0
45 stars 30 forks source link

2014-01-10 20:00:15 → YYYY-MM-DD H:mm:D #2

Closed jviereck closed 10 years ago

jviereck commented 10 years ago

moment.parseFormat('2014-01-10 20:00:15') parsed to YYYY-MM-DD H:mm:D, I expected: <YYYY-MM-DD H:mm:DD>

AFAIKT there are always two digets for seconds. Also, should hours get formated with two digets as well?

PS: Overall - awesome library idea :)

jviereck commented 10 years ago

Just saw, there is #1 - closing this one :D