From d8e591e9bf8ba206b296e28eab4b06b9fbae1283 Mon Sep 17 00:00:00 2001 From: spiritree Date: Tue, 23 Jan 2018 15:08:21 +0800 Subject: [PATCH] fix moment format (#799) --- src/routes/List/Articles.js | 2 +- src/routes/List/BasicList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/List/Articles.js b/src/routes/List/Articles.js index d0a3096e..f7aac69a 100644 --- a/src/routes/List/Articles.js +++ b/src/routes/List/Articles.js @@ -77,7 +77,7 @@ export default class SearchList extends Component {
{content}
{owner} 发布在 {href} - {moment(updatedAt).format('YYYY-MM-DD hh:mm')} + {moment(updatedAt).format('YYYY-MM-DD HH:mm')}
); diff --git a/src/routes/List/BasicList.js b/src/routes/List/BasicList.js index 08849235..0478cdfb 100644 --- a/src/routes/List/BasicList.js +++ b/src/routes/List/BasicList.js @@ -66,7 +66,7 @@ export default class BasicList extends PureComponent {
开始时间 -

{moment(createdAt).format('YYYY-MM-DD hh:mm')}

+

{moment(createdAt).format('YYYY-MM-DD HH:mm')}

-- GitLab