
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 08:00 AM
Anybody run into issues with the sn-day-ago widget where relative dates display as "50y ago" rather than the correct date after upgrading to New York?
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2019 02:20 PM
From HI:
The issue you are facing is related to a known problem - PRB1357259 which happens when date format is set to dd/MM/yyyy. This is fixed in New York patch 2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 10:02 AM
Hi,
The sn-day-ago is used to display relative dates in widgets. For eg: If you check the KB Article widget OOB, it renders a relative date using the sn-day-ago directive
<sn-day-ago date="data.publishedUtc"/>
All the scripted list OOB also uses the same relative display. You could display proper date if your remove this directive and render it directly
Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 01:00 PM
Hi Alikutty--right, and that's what we want to do (show relative date). It's just displaying the wrong relative date, "50y ago," for all of our requests. We have some old requests sitting open, but none of them are 50 years old. 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2019 02:20 PM
From HI:
The issue you are facing is related to a known problem - PRB1357259 which happens when date format is set to dd/MM/yyyy. This is fixed in New York patch 2.