mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-31 18:20:09 +01: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);
|
||||
}
|
||||
|
||||
if (date.isBefore(Moment().add('years', -1))) {
|
||||
return date.format('ll');
|
||||
}
|
||||
|
||||
return date.fromNow();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user