Change time "ago" on Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 04:55 AM
Hi guys! 🙂
In the ticket-widget'en on the Service Portal (Helsinki), ServiceNow will show date/times as "ago" (and it doesn't matter what the user-preferences are: calender, ago or both)
If you move the mouse over "6 min ago", ServiceNow will actually show the date+time:
In the ticket-conversions widget (HTML-part) it show the "sn-time-ago timestamp".
Of course I can clone the widget and change that part, but to what?
Thanks
Soren
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 05:38 AM
Cool !!
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2017 03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2017 03:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2017 05:14 AM
Sadly I dont think there is for sn-time-ago. It seemed to be saved backend. Some directives are visible. For example <sp-category-list-item> can be found under "angular providers". There you also can the "options" there is that you can use, like "page".
Lets try to push them to document these as well as possible.
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2017 03:44 AM
From what I've discovered through a bit of trial and error there are 2 directives that show this sort of info..
<sn-time-ago timestamp="your_date_time_here"/> - is a bit more granular in that it shows hours ago then rounding up to days etc..
<sn-day-ago date="your_date_time_here"/> - has more rounding and generalization of time.. i.e. if less than 24 hours would show 'Today'..., shows things like 'about a month ago'.. etc..
Would be good to have these fully documented so we know all the nuances with regards to how a date/time is displayed with regards to its age.