I want to generate date in the format 2019-03-28T15:30:59+12:00
using wiremock.
I tried:
"currentDateTime": "{{now timezone='Australia/Sydney' format='yyyy-MM-dd'T'HH:mm:ssZ'}}"
but, I get exception:
wiremock.com.github.jknack.handlebars.HandlebarsException: inline: found: ''yyyy-MM-dd'T'HH:mm:ssZ'', expected: 'no viable alternative at input ''yyyy-MM-dd'T'HH:mm:ssZ'''
I have also tried escaping both the quotes around T
, but it does not work.
What I am doing wrong?