The Zurich release has arrived! Interested in new features and functionalities? Click here for more

ITSM

KritiK
Tera Contributor

Hello @everyone, I hope you are doing well so, I have created two custom field first field type is Time and second field type date and time. 

Issue:- first field is populating from the portal but Time is not same in the second field.

Expectation:- Time should be same in the both field.

Please help me to solve this issue

KritiK_0-1719215429313.png

 

 

 

1 REPLY 1

Prana Krushna
Giga Guru

@KritiK For the date and time field servicenow stores the value in UTC format and display the time according to the timezone in current loggedin user profile. So I think when you are setting the time change your logic and set accordingly. or you can instead setting the value set the display value of that date time field. eg. field_name.setDisplayValue(value you want to set).