Fixed DateCells

This commit is contained in:
Mark McDowall 2013-07-17 17:28:33 -07:00
commit fe48fd9fe9
2 changed files with 7 additions and 4 deletions

View file

@ -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 '));
},