- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 08:40 AM
Is it possible to display the exact time stamp of the Activity Stream of Service Portal
For Example under any activity it is displaying 2y ago, 2d ago instead is there any possibilty to display the exact time?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 02:36 PM
Hi @Gowtham Kodali
This comes from the widget named - Standard Ticket Conversations.
This widget is read - only. If you want to change anything you should be cloning it. Do it only if it necessary.
Steps:
1. Navigate to Service Portal > Widgets
2. Find the Widget with name : Standard Ticket Conversations
3. Open the record and below in the related links, click Open in widget editor.
4. In the HTML Template script check the 87th line.
<sn-time-ago timestamp="::e.sys_created_on"></sn-time-ago>
This is the one that is displaying as 2Y ago. Comment the code.
5. Add only the below code,
{{::e.sys_created_on}}.
6. Save the record.
Now, navigate to page and open in Page Designer,
Remove the 'Standard Ticket Conversations' and add the cloned version of it.
Before:
After:
Hope this helps.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 11:44 PM
Hi @Gowtham Kodali ,
I tried it. Looks the possibility is less. The data is being fetched from the client script and looping is happening there.
Line 486 in the Client script of the widget. If it is really required, do have a look into this.
Please mark as helpful if the solution provides any help.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 02:36 PM
Hi @Gowtham Kodali
This comes from the widget named - Standard Ticket Conversations.
This widget is read - only. If you want to change anything you should be cloning it. Do it only if it necessary.
Steps:
1. Navigate to Service Portal > Widgets
2. Find the Widget with name : Standard Ticket Conversations
3. Open the record and below in the related links, click Open in widget editor.
4. In the HTML Template script check the 87th line.
<sn-time-ago timestamp="::e.sys_created_on"></sn-time-ago>
This is the one that is displaying as 2Y ago. Comment the code.
5. Add only the below code,
{{::e.sys_created_on}}.
6. Save the record.
Now, navigate to page and open in Page Designer,
Remove the 'Standard Ticket Conversations' and add the cloned version of it.
Before:
After:
Hope this helps.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 10:40 PM
Thank you najmuddin i am getting the timestamp but it is displaying in UTC timezone, is there any possibilty to display it in the logged in User timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2024 11:44 PM
Hi @Gowtham Kodali ,
I tried it. Looks the possibility is less. The data is being fetched from the client script and looping is happening there.
Line 486 in the Client script of the widget. If it is really required, do have a look into this.
Please mark as helpful if the solution provides any help.
Regards,
Najmuddin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 10:38 AM
for journal entry - You can add the below code to the server script to get the time in the logged in user's time zone