Service Portal Relative Date Issue (sn-day-ago widget)

cloudyrobert
Kilo Guru

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?

find_real_file.png

1 ACCEPTED SOLUTION

cloudyrobert
Kilo Guru

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.

View solution in original post

3 REPLIES 3

Alikutty A
Tera Sage

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!

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. 🙂

cloudyrobert
Kilo Guru

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.