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.

Fix script does not update record correctly

dev_K
Tera Contributor

Hi All,

 

I have a script that fixes a value on a record

 

if (gr.next()) {
  gr.setValue('due_date', '15/01/2026 00:00:00');
  gr.update();
  
 
it works but not for the hour, the hour is always updated to 01:00:00:
dev_K_0-1743154241678.png

 

how can I set it to 00:00:00??

5 REPLIES 5