mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed DateCells
This commit is contained in:
parent
40f49d7385
commit
fe48fd9fe9
2 changed files with 7 additions and 4 deletions
|
@ -24,8 +24,12 @@ define(
|
|||
return date.fromNow(true);
|
||||
}
|
||||
|
||||
//TODO: It would be nice to not have to hack this...
|
||||
if (date.isBefore(Moment().add('days', -6))) {
|
||||
return date.fromNow();
|
||||
}
|
||||
|
||||
var calendarDate = date.calendar();
|
||||
//TODO: It would be nice to not have to hack this...
|
||||
return calendarDate.substring(0, calendarDate.indexOf(' at '));
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue