Skip to content

ISO8601FormatStyle does not respect ±[hh] timezone offset #1159

@edudnyk

Description

@edudnyk

According to the ISO8601 standard, timezone offset can be provided as positive or negative two-digit hour-only offset without minutes.

The implementation of ISO8601FormatStyle always requires minutes to be present in the string being parsed.

It should be possible to parse the following:

let date = try Date("1988-11-08T05:30:00+00", strategy: .iso8601)

Apple Feedback ID: FB16448412

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions