Skip to content
This repository was archived by the owner on Dec 28, 2020. It is now read-only.

GetUserPaymentRequest expects ISO-8601 Zulu #1

Merged
merged 2 commits into from
Jun 19, 2018
Merged

GetUserPaymentRequest expects ISO-8601 Zulu #1

merged 2 commits into from
Jun 19, 2018

Conversation

JochemKlingeler
Copy link
Contributor

Using ->format('c') does produce an ISO-8601 string as the documentation states it requires, but in reality as the example states, it expects a ISO-8601-Zulu string, so using this will produce an invalid input error.

Creating a new datetime object feels a bit dirty, but sadly the setTimezone() function does not exist on the DateTimeInterface and I didn't want to change the method contract.

@jarnovanleeuwen
Copy link
Owner

Thanks Jochem, I managed to reproduce this (and I am working on tests :)).

Yes, creating a new datetime object feels a bit dirty, but I think it is nice that we do not change the input objects.

@jarnovanleeuwen jarnovanleeuwen merged commit 096f9af into jarnovanleeuwen:master Jun 19, 2018
@JochemKlingeler JochemKlingeler deleted the origin/Iso8601ZuluFix branch March 31, 2020 06:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants