rtfeldman/elm-iso8601-date-strings

Doesn't support ISO months

Open

#21 geöffnet am 22. März 2019

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Elm (21 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (37 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

According to Wikipedia at least, it's valid to specify a month only, without a specific day, ie YYYY-MM only. I have an API I'm working with that returns months in this format.

Sadly this throws a parser error: [{ col = 8, problem = ExpectingSymbol "-", row = 1 }].

I can work around it of course by just tacking -01 onto the month, and maybe this is even the correct way you'd translate that format to a Posix date anyway, but I thought I'd point it out.

Contributor Guide