1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-03-03 01:55:33 +00:00

Dates older than 1 year will show date instead of time ago

This commit is contained in:
Mark McDowall 2013-07-19 18:21:13 -07:00
parent 9ea588dd91
commit 3b4a1986c5

View file

@ -33,6 +33,10 @@ define(
return date.fromNow(true);
}
if (date.isBefore(Moment().add('years', -1))) {
return date.format('ll');
}
return date.fromNow();
},