Date/ Time Issue

Ramya-Sree
Tera Contributor

We are having a field whose type is date/ time which is populated wrongly due to a different time zone.

For example: I have passed the value for this field as 08:30:00 from the Json but on the form, it is giving the value as 09:30:00

 

Can anyone please let me know if they have faced similar issue and any solution to correct this.

8 REPLIES 8

Might be log a case with Now Support.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

dhanrajb
Tera Guru

Hi @Ramya-Sree ,

 

Can you be able to share the script, which used to populate the date/time field? Are you using GlideDateTime function?

 

Regards,

Dhanraj.

Hi @dhanrajb 

Please see the script in the attached screenshot.

Thanks,

Ramya Sree Bandaruimage (1).png

Hi @Ramya-Sree ,

 

Can you try with setValue instead of setDisplayValue in line 29.

 

Regards,

Dhanraj.