From dbfae0b55e69c49a0c1033c73c4e58522687746a Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com> Date: Mon, 13 Apr 2020 05:21:27 -0400 Subject: [PATCH] Add year, localization support for displaying things older than 1 year (#2034) --- js/src/common/utils/humanTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/common/utils/humanTime.js b/js/src/common/utils/humanTime.js index f77d7d3b2..1085b6296 100644 --- a/js/src/common/utils/humanTime.js +++ b/js/src/common/utils/humanTime.js @@ -26,7 +26,7 @@ export default function humanTime(time) { if (m.year() === moment().year()) { ago = m.format('D MMM'); } else { - ago = m.format('MMM \'YY'); + ago = m.format('ll'); } } else { ago = m.fromNow();