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

SRJ
Tera Contributor

find_real_file.png


That's great Jan,



Sorry to be a pain, but any idea how the date format could be amended from yyyy - mm - dd to dd - mm - yyyy



Our system default and my profile are both set to dd - mm - yyyy but it is still showing like:



find_real_file.png


Thanks



Sam


SRJ
Tera Contributor

not sure , we let the date format as its


find_real_file.png


Hi Jan,



What code do you have in place for the created box (the one circled)



Thanks


SRJ
Tera Contributor

find_real_file.png