Skip to content

Instant.parse(..) inconsistent between jvm and ios targets #369

@HaukeRa

Description

@HaukeRa

From ISO_DATE_TIME_OFFSET format:

.., 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.

Metadata

Metadata

Assignees

Labels

formattersRelated to parsing and formatting

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions