lie about the time if it is ahead of us

Fixes #247
This commit is contained in:
Girish Ramakrishnan
2017-03-02 14:34:14 -08:00
parent 55245557f5
commit c351242af7

View File

@@ -216,7 +216,7 @@ app.filter('prettyDate', function () {
day_diff = Math.floor(diff / 86400);
if (isNaN(day_diff) || day_diff < 0)
return;
return 'just now';
return day_diff === 0 && (
diff < 60 && 'just now' ||