chrono icon indicating copy to clipboard operation
chrono copied to clipboard

Add support for ISO dates missing punctuation in date and/or time

Open mvolz opened this issue 8 years ago • 0 comments

We got a report of date here not being parsed:

20170821T1415+0300Z

I've noticed that ISO dates that are definitely valid but lack punctuation are not recognised either, i.e: 20171207T124731Z

According to the ISO standard punctuation can be omitted from the date and/or the time. (And no, Date.parse() doesn't seem to recognise it either!)

I was wondering if this is something that could be added to chrono. I do know about custom parsers if that is not the case :).

mvolz avatar Dec 07 '17 13:12 mvolz