summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlec Kojaev <alec@kojaev.name>2021-07-16 15:40:04 +0300
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-07-24 14:52:34 +0200
commit65c15dac38358d5c3a619379b57bd498c070ea6f (patch)
tree8052e83899b96b7e761f779a43d15feb7921e353 /templates
parent691c42bdbce50eaa7857f8386c706a4e8c763d60 (diff)
Reimplement relative time formatting as a filter, dropping dependency on deprecated moment.js
Signed-off-by: Alec Kojaev <alec@kojaev.name>
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php4
1 files changed, 2 insertions, 2 deletions
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 }}
</time>
</li>
<li ng-click="Content.toggleStar(item.id)"
@@ -176,7 +176,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 }}
</time>
<h1 ng-attr-dir="{{item.rtl && 'rtl'}}">
<a class="external"