- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2021 09:53 AM
I have the following code
<sn-time-ago timestamp="d.sys_created_on"></sn-time-ago>
to show how long ago a ticket was created in a sp widget. In testing, I noticed that for tickets that were just created, it shows 8h ago, and as of an hour later, it shows 9h ago. I checked the data in the actual ticket itself and it is correct. Is there something special that needs to be done here? Am I going to have to handle that logic myself?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2021 03:07 PM
I was getting the display value of the field in the server script. Changed to gr.getValue('sys_created_on') and the proper time difference is shown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2021 03:07 PM
I was getting the display value of the field in the server script. Changed to gr.getValue('sys_created_on') and the proper time difference is shown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2022 01:32 PM
Hi Austinn,
I am have the same issue here. Which part of the Server Script that you change? Could you please share?
Regards,
Hong