Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Change time "ago" on Service Portal

priisholm
Mega Expert

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)

find_real_file.png

If you move the mouse over "6 min ago", ServiceNow will actually show the date+time:

find_real_file.png

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?

find_real_file.png

Thanks

Soren

21 REPLIES 21

jbasa
Tera Contributor

This works well what about the corresponding Ticket Conversations Widget.  I added the date but can't see to get it to display MM/dd/yyyy like the Ticket fields

find_real_file.png

Wendy12
Tera Contributor

I haven't worked on that widget functionality yet. However, these two threads look feasible.


https://community.servicenow.com/community?id=community_question&sys_id=98f3662cdb5ee3002e8c2183ca96197e&anchor=answer_d6a55a69db12a34011762183ca9619b3&view_source=searchResult

 

I found this excerpt " i comment the " <!--<sn-time-ago timestamp="::mi.sys_updated_on" /> --> and replaced with {{::mi.sys_updated_on }} " a good place to start.


and this is great, too. https://community.servicenow.com/community?id=community_question&sys_id=08456ea81b2b9494d2ccea89bd4bcbcc&view_source=searchResult