ReadReader was converting ZonedDateTime parameters setDateCreatedAfter() and setDateCreatedOnOrBefore() to a string using .toString(). This method should be only used for display purposes and makes getting a fax list fail. The format required by the REST interface is full ISO mode in UTC time (2020-10-05T06:29:31Z).
Added a method "private static String toZulu(ZonedDateTime date)" that converts the ZonedDateTime into an java.time.Instant and returns the proper string ISO format required by the Twilio Fax REST interface.
Checklist
[X] I acknowledge that all my contributions will be made under the project's license
[X] I have made a material change to the repo (functionality, testing, spelling, grammar)
Fixes #592
ReadReader was converting ZonedDateTime parameters setDateCreatedAfter() and setDateCreatedOnOrBefore() to a string using .toString(). This method should be only used for display purposes and makes getting a fax list fail. The format required by the REST interface is full ISO mode in UTC time (2020-10-05T06:29:31Z).
Added a method "private static String toZulu(ZonedDateTime date)" that converts the ZonedDateTime into an java.time.Instant and returns the proper string ISO format required by the Twilio Fax REST interface.
Checklist