From df9236931db4a1fd46aee2c26407f0c63ce80cb0 Mon Sep 17 00:00:00 2001 From: iMaeGoo Date: Thu, 24 Dec 2020 14:26:34 +0800 Subject: [PATCH] feat(layout): change date time format to locale string instead of UTC TZ time --- layout/common/article.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/common/article.jsx b/layout/common/article.jsx index 020d96c..eb85201 100644 --- a/layout/common/article.jsx +++ b/layout/common/article.jsx @@ -44,11 +44,11 @@ module.exports = class extends Component {
{/* Creation Date */} {page.date && ${date(page.date)}`) + __html: _p('article.created_at', ``) }}>} {/* Last Update Date */} {page.updated && ${date(page.updated)}`) + __html: _p('article.updated_at', ``) }}>} {/* author */} {page.author ? {page.author} : null}