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 the "time ago" on the My Requests widget

Sam Buschette
Tera Contributor

Hi - I am looking for some help as I am not a developer but have been asked edit the timestamp on the My Requests widget to show date/time instead of time ago. We use this widget on our customer portal homepage. Below is a screenshot of how it appears and I circled the column I seek to change.
find_real_file.png

Do I need to edit my HTML copy or Server Script? If yes, can you provide me with the edit? I included screenshots of this code. Thank you in advance for any help.

HTML Template:

find_real_file.png
find_real_file.png

Bottom section of Server Script:

find_real_file.png

 

5 REPLIES 5

Nadee33
Tera Contributor

The below code worked for me. Hope this will help someone someday. Thanks. 

 

 <small class="text-muted">
                                    <span class="glyphicon glyphicon-time" aria-hidden="true" tabindex="-1" />
                                    <!--sn-time-ago timestamp="::e.sys_created_on" -->
                                   <span>{{::e.sys_created_on}}</span>
                                 </small>