Merge pull request #1205 from florianorben/fix-relative-time

Dont display '1 minute ago' timestamps for post posted < than 1 minute ago
Этот коммит содержится в:
Joram Wilander
2015-10-28 08:07:39 -04:00
родитель 570b54bbfc c91f4f8ab1
Коммит 32978e59f9

Просмотреть файл

@@ -211,11 +211,15 @@ export function displayDateTime(ticks) {
}
interval = Math.floor(seconds / 60);
if (interval > 1) {
if (interval >= 2) {
return interval + ' minutes ago';
}
return '1 minute ago';
if (interval >= 1) {
return '1 minute ago';
}
return 'just now';
}
export function displayCommentDateTime(ticks) {