Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Time display incorrect using Output (generatePDFOutput) module

Avatar

Level 2

I needed to manipulate the date & time to display the day, date time with am/pm and timezone. So using formcalc with renderPDFForm as the module i am using this formCalc code:

$.rawValue = Concat(Num2Date(Date(), "EEEE MMM DD YYYY")," ", Num2Time(Time(),  "h:MM:SS A Z"))

This works correctly and it prints out " Tuesday May 01 2012 1:26:02 PM EDT" this is exactly what I want and it is correct, but for 508 purposes we switched out renderPDFForm and are now using generatePDFOutput. There has been no change to the code but now my pint out says "Tuesday May 01 2012 1:16:15 PM GMT-04:00"  Why is this gmt part now showing is it due to the module is there code to get around it?

0 Replies

Avatar

Level 10

I changed the RenderPDF to generatePDFOutPut and I am getting the expected time format.

Not sure what is wrong with the settings you made.

If you still have issues, keep the RenderPDF option and then add the transformPDF service to flatten it out. That way it can keep the same format.

GenerateOutPut.JPG

Thanks

Srini