How to change to actual date in service portal

JDickson
Kilo Expert

Hi,

I need to change the display in the service portal from 'X days ago' to the actual date time stamp. This is populated in quite a few OOB widgets and i know i need to clone them and edit the HTML just not sure what too.

find_real_file.png

find_real_file.png

Thanks

1 ACCEPTED SOLUTION

Hi Mike that has worked thanks.

Im trying to change in another widget, Approval record, which we have already edited but cannot see anything relating to date field.

 

find_real_file.png

id also like to remove the 'additonal comment' when comment added if possible.

Thanks

 

View solution in original post

6 REPLIES 6

Mike Patel
Tera Sage

you can change <sn-time-ago timestamp="::field.value" />

to 

<sn-time-ago timestamp="::field.display_value" />

Hi Mike that has worked thanks.

Im trying to change in another widget, Approval record, which we have already edited but cannot see anything relating to date field.

 

find_real_file.png

id also like to remove the 'additonal comment' when comment added if possible.

Thanks

 

you will have to edit ticket conversations widget that is on that page. Where you find

<sn-time-ago timestamp="::e.sys_created_on" />

change it to 

<sn-time-ago timestamp="{{data.sys_created_on}}" />

 

its showing as a different widget when i 'shift + right click'?

find_real_file.png

my ticket conversations one has already been edited and that has the date stamp under an incident.

find_real_file.png