mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Dates older than 1 year will show date instead of time ago
This commit is contained in:
@@ -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();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user