• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Time zone issue Word to pdf

New Here ,
Jan 26, 2023 Jan 26, 2023

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?

Views

240

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2023 Jan 26, 2023

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 27, 2023 Jan 27, 2023

Copy link to clipboard

Copied

LATEST

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."

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources