Open MangoIV opened 1 month ago
Do you have a code example?
-- >>> x @UTCTime
-- Just 2024-05-30 16:15:18 UTC
-- >>> x @ZonedTime
-- Nothing
x :: ISO8601 t => Maybe t
x = iso8601ParseM "2024-05-30T16:15:18Z"
here I would assume that it would be fine to parse into utcToZonedTime utc
@AshleyYakeley This was notably discovered in the Security Advisories tooling, but I don't doubt other people have found it on their own.
Currently the iso8601 parser fails when trying to parse a ZonedTime from a non-offset time stamp. I was wondering why it doesn’t succeed and just “assumes” utc.
thanks in advance!