banana-j / bananaj

Java API wrapper for MailChimp API 3.0
MIT License
38 stars 33 forks source link

Improper handling of ISO 8601 time zone designator #44

Closed gscriver closed 4 years ago

gscriver commented 4 years ago

The DateConverter class ignores the time zone designator in ISO 8601. For example, 2019-03-15T14:04:59-05:00 becomes local date time of 2019-03-15 14:04:59, completely ignoring the local time zone. When translated to UTC it should be 2019-03-15T19:04:59+00:00.

gscriver commented 4 years ago

Replacing all LocalDateTime references with ZonedDateTime so that the time zone designator will no longer be ignored.