You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.., except that during parsing, specifying the minutes is optional.
This format differs from LocalTime.Formats.ISO in its time part in that specifying the seconds is not optional.
JVM allows to ommit seconds (i.e. parse "2024-03-19T17:50Z") while builds for ios do not (fails with kotlinx.datetime.DateTimeFormatException: Parse error at char 16: expected char ':', got 'Z)
Omitting minutes, while allowed as per documentation, always fails for both targets.
The text was updated successfully, but these errors were encountered:
It would be nice if both targets would behave equally, especially since folks tend to test on jvm/android and just expect (or hope) that ios will just work the same way. But, if read correctly, the documentation is right. Generally it is not allowed to ommit the seconds part.
From ISO_DATE_TIME_OFFSET format:
JVM allows to ommit seconds (i.e. parse "2024-03-19T17:50Z") while builds for ios do not (fails with
kotlinx.datetime.DateTimeFormatException: Parse error at char 16: expected char ':', got 'Z
)Omitting minutes, while allowed as per documentation, always fails for both targets.
The text was updated successfully, but these errors were encountered: