ITSM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 12:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:13 AM
@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).