1
0
mirror of https://github.com/flarum/core.git synced 2025-07-23 09:41:26 +02:00

Add year, localization support for displaying things older than 1 year (#2034)

This commit is contained in:
Alexander Skvortsov
2020-04-13 05:21:27 -04:00
committed by GitHub
parent 0245df0573
commit e98145d627

View File

@@ -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();