Service Portal created time on incident view showing wrong time

pooja V1
Mega Guru

Hello,

In Service Portal, when we open the incident view and in Activity timeline after incident is being created work notes is mentioned, as soon as the incident is created it shows created 5hr ago. But the actual time of incident created is different. When we hover over on the 5hr it shows wrong time.

When i print the data.created_on is getting the correct date and time, but why it is showing wrong there. can someone please help.

Attaching the screenshots of script and portal view.

Thanks,

Pooja

 

1 ACCEPTED SOLUTION

pooja V1
Mega Guru

I found the answer, 
From server side we are doing data.created_on = gr.getDisplayValue('sys_created_on') ,  when passing the display value to timestamp it id going back for 5hrs and setting the value. So, I changed that getDisplayValue to getValue() method and now the date and time is working correctly.

View solution in original post

5 REPLIES 5

Anil9
Tera Contributor

Hi @pooja V 

Could you please help me with solution here. I have a similar requirement. The Ritm created on time is correct but in the activity log it shows as 1hr less.