Copy link to clipboard
Copied
Hi,
We are creating pdf files for a test application through Acrobat Services API, converting a json to pdf using a Word template and Adobe document generation. The source json include the test execution time stamp, which we print in the report. In the Word template we insert the create time of the document using the code TIME \@ "yyyy-MM-dd HH:mm" . The create time of the pdf will be in displayed in UTC, but since the execution time is UTC+1 the document appears to be created almost 1 hour in the past.
How do we solve the need to print Word create time in local time?
Copy link to clipboard
Copied
Try using the JSONata function $now() in a tag where you want the date to be displayed instead of TIME. Something like this...
{{$eval($now())}}
Copy link to clipboard
Copied
You mean replacing TIME \@ "yyyy-MM-dd HH:mm" with {{$eval($now())}} in Word?
That doesn't work. When creating the pdf I get this error in Adobe document generation: