aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/reader.phtml
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2020-07-14 10:51:45 +0200
committerGravatar GitHub <noreply@github.com> 2020-07-14 10:51:45 +0200
commit8d8211b2a5fa997bce06d7ae0c6f7cf37f97b245 (patch)
tree0cb2f8da03c8470a14c411cf2477be0e2047255b /app/views/index/reader.phtml
parent877f5f539b82db2e59ecf7257fce18dc9245f310 (diff)
Add machine-readable dates in views (#3106)
This will allow to make some transformations on dates when needed. See #3103 and #853
Diffstat (limited to 'app/views/index/reader.phtml')
-rw-r--r--app/views/index/reader.phtml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index 644cd09c6..32e2bee04 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -62,8 +62,7 @@ $content_width = FreshRSS_Context::$user_conf->content_width;
endforeach;
echo ' — ';
endif;
- echo $item->date();
- ?></div><div class="text">
+ ?><time datetime="<?= $item->machineReadableDate() ?>"><?= $item->date() ?></time></div><div class="text">
<?= $item->content() ?>
</div></div>
</div>