Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

notification field opened

yardenKrispel
Tera Contributor

Hi!

How do I remove the end from the opend field PDT? I marked it in the next picture in red , I need the opend field in the notification and it just makes the time and date correct for me, but in the end it says PDT and I have to download it

yardenKrispel_0-1713256925048.png

 

12 REPLIES 12

Community Alums
Not applicable

Hi,

 

Have you tried Notification Email Scripts to populate the date/time format as required? If not please refer to the below example.

Create a mail script as below, this will remove the timezone that is coming.

var gdt = new GlideDateTime(current.opened_at);
template.print('Opened: ' + gdt.getDisplayValue());


Please mark this as correct/helpful, if it resolves your issue.

Thanks & Regards,
Suheb

yardenKrispel_0-1713433239735.png

 not work 

Community Alums
Not applicable