Description
Changing the Date/Time TimeAgo format preference is not honoured in Service Portal.
Steps to Reproduce
1. Login an instance with the Service Portal plugin installed
2. Open the page /$spd.do
3. Add the Widget "Data Table from Instance Definition" to a page
4. Click on the pencil icon to edit and select Table and Fields
5. Include the created or updated timestamp date fields
6. Change the instance settings clicking on the top-right gear icon from "Date/Time" to "Time Ago" and vice-versa
7. Load incident.list and check how the date is displayed in both cases
8. View the page /sp and check how the date is displayed in both cases
The Date/Time will change outside Service Portal but not in Service Portal.
Workaround
This behaviour is by design in Service Portal and there is not plan to change it in current or near future releases. You can submit an Enhancement Request and Subscribe to this article to be notified in case of future updates.
One possible workaround would be the following:
1- Clone the OOB widget where the timestamps are displayed.
2- Check its HTML template and modify the line:
<sn-time-ago timestamp="::field.value" />
into:
{{::field.display_value}}
3- Replace the OOB widget with the newly-cloned widget in the respective page.
Related Problem: PRB909690