New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to format ZonedDateTime #1107
Comments
I've updated the datetime methods to use Java DateTimeFormatter. The expression to match that value will now have to be BTW, |
4.1.1 has been released |
@uglyog the new test you've added is failing when building on my machine. |
This was fixed and backwards compatibility with previously working date formats is guaranteed, at least for now. |
Hi,
There is an issue with ISO_ZONED_DATE_TIME format e.g
2020-01-01T10:00+01:00[Europe/Warsaw]
usingLambdaDslObject date
.au.com.dius.pact.consumer.MockServer)]: Illegal pattern component: V
body.date("date", "yyyy-MM-dd'T'HH:mmZZZV", ZonedDateTime.parse("2020-01-01T10:00+01:00[Europe/Warsaw]"));
Looks like the problem is that Pact is using FastDateFormat which seems to be based of SimpleDateFormat. The solution would be to move to DateTimeFormatter
The text was updated successfully, but these errors were encountered: