I am using following ISO8601 format:
YYYY-MM-DDThh:mm:ssZ
And I used OffsetDateTime.parse()
to parse this format. I was able to parse date-time by passing t
(instead of T
) and z
(instead of Z
) here.
So can anyone tell if it is allowed in ISO8601 or is it missed only in parsing logic?
I don't think it's valid to produce them though I guess it's fine (though not great) that the parser allows it.
The normative EBNF I have access to (8601-1 DIS Annex A) uses only uppercase latin letter for all designators, whether they be Z, T, W, R, P, Y, M, D, H, M, or S, and unlike (non-A) BNF, as far as I know EBNF terminals are case sensitive.