From 65c15dac38358d5c3a619379b57bd498c070ea6f Mon Sep 17 00:00:00 2001 From: Alec Kojaev Date: Fri, 16 Jul 2021 15:40:04 +0300 Subject: Reimplement relative time formatting as a filter, dropping dependency on deprecated moment.js Signed-off-by: Alec Kojaev --- templates/part.content.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/part.content.php b/templates/part.content.php index 8c96e7d96..26329ad35 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -50,7 +50,7 @@ date:'yyyy-MM-dd HH:mm:ss' }}" datetime="{{ item.pubDate*1000 | date:'yyyy-MM-ddTHH:mm:ssZ' }}"> - {{ Content.getRelativeDate(item.pubDate) }} + {{ item.pubDate*1000 | relativeTimestamp }}
  • - {{ Content.getRelativeDate(item.pubDate) }} + {{ item.pubDate*1000 | relativeTimestamp }}