Dates older than 1 year will show date instead of time ago

pull/2/head
Mark McDowall 11 years ago
parent 9ea588dd91
commit 3b4a1986c5

@ -33,6 +33,10 @@ define(
return date.fromNow(true);
}
if (date.isBefore(Moment().add('years', -1))) {
return date.format('ll');
}
return date.fromNow();
},

Loading…
Cancel
Save