Hi, I am posting a follow up from a question I pos...
# pact-jvm
j
Hi, I am posting a follow up from a question I posted in #C5F4KFKR8 the other day. I am having issues with the datetime matcher, that pact is generating the example date in my local time instead of in UTC, which is what is expected. I was able to get the test to run green by setting the run configuration argument -Duser.timezone="UTC", but this is not really the ideal solution ( I could set it in the POM as well, which would be a tad better, but still not what we want). Does anyone know if there is a way to tell Pact which timezone to use? When providing the Instant to the .datetime method, I am also giving the timezone information, but it seems to be overridden.
t
I don’t know the answer to your question - but, why would it matter as long as the generated timezone is format compliant?
I am also giving the timezone information, but it seems to be overridden.
This sounds like a bug to me
j
It only matters because I have a Mockito.verify in my test where I am providing an expected object, in which the dates then does not match