Skip to main content
Participant
January 26, 2023
Question

Time zone issue Word to pdf

  • January 26, 2023
  • 1 reply
  • 361 views

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?

    This topic has been closed for replies.

    1 reply

    Joel Geraci
    Community Expert
    Community Expert
    January 26, 2023

    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())}}

     

    Participant
    January 27, 2023

    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:

    "Error. Unsupported expression present in the document template."