DateTime icon indicating copy to clipboard operation
DateTime copied to clipboard

Allow ISO 8601 timezone offset in `DateTime.fromString()`

Open cedx opened this issue 5 years ago • 0 comments

The DateTime.fromString() method only allows ISO 8601 dates that have the following format: YYYY-MM-DDThh:mm:ss[.SSS]Z

But it is very common to have dates that use a timezone offset, like 2020-04-24T16:20:07+02:00.

So it would be cool if the DateTime.fromString() method supported dates using a timezone offset. Currently, it's very hard to deal with ISO 8601 dates in Haxe!

cedx avatar Oct 08 '20 09:10 cedx