diff options
author | Alec Kojaev <alec@kojaev.name> | 2021-07-16 15:40:04 +0300 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-08-02 12:21:07 +0200 |
commit | 2bea3f4b7e4b87d2dec6778a4371bb5eb8ec7592 (patch) | |
tree | f02968eba6c1bcfbfd7ade449696950c7a7b72ba /templates | |
parent | 2b9c45df4080be1ab730de6f532d10dab364dd90 (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.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/part.content.php b/templates/part.content.php index 11b34eea0..acfb9187e 100644 --- a/templates/part.content.php +++ b/templates/part.content.php @@ -59,7 +59,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)" @@ -185,7 +185,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" |