mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 09:03:49 -07:00
Dates older than 1 year will show date instead of time ago
This commit is contained in:
parent
9ea588dd91
commit
3b4a1986c5
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ define(
|
||||||
return date.fromNow(true);
|
return date.fromNow(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (date.isBefore(Moment().add('years', -1))) {
|
||||||
|
return date.format('ll');
|
||||||
|
}
|
||||||
|
|
||||||
return date.fromNow();
|
return date.fromNow();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue