- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 05:51 AM
Hi All,
On the service portal we user the OTTB 'ticket conversation' widget for our customers to view additional comments and add additional comments to open tickets.
currently when a comment is added the timestamp displays as time ago e.g. 2m ago, 5d ago etc
This works fine when the comments are recent e.g. couple of minutes or hours ago, but as time elapses it becomes less useful. Also when looking back at close logs it will say for example 3 months ago.
Instead we want this to display as a full date/time stamp in the format dd/mm/yyyy hh:mm:ss
How would we amend the widget for this?
Thanks
Sam
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 09:27 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 06:19 AM
HI Sam,
Hope you are doing good!
I know this is a problem when we have to check actually date and time.
Here what we have to do is we have to clone the widget and edit the HTML, client controller and to some extent server code as well.
See this line :<sn-time-ago timestamp="::e.sys_created_on" />
This is used to display the Time stamp. We need to edit this as per requirement.
Thanks,
Ashutosh Munot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 06:28 AM
Hi Ashutosh,
I'm good thanks, hope you are too.
Thanks for the above, I've noticed the above line, but I am unsure on the amendments I need to make in order to achieve the changes?
Thanks
Sam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 06:44 AM
HI,
MAKE sure when you clone that widget you have all angular providers and Dependencies in related list mapped.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 06:50 AM
Hi,
The OTTB has no records in the dependencies or angular providers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2018 07:13 AM
Hi,
I've just deleted the clone of the widget and put back the ottb ticket conversation widget on my page, but it seems to still be getting these errors when I click on the widget menu.
Any ideas what would cause the errors in the screenshot in the reply to mike?
I've no experience on how to attempt to solve these sorts of errors
Thanks