diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-17 00:16:07 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-17 00:16:07 +0100 |
commit | afd22acd5ddb6c92e77b7660ef7ee65f4192d7ae (patch) | |
tree | c4f9297e2d34992e44e1c5d75428e777e6771a9c /webui | |
parent | 14e91cb5edb8ab73dbb7c4cf3ae72e41aafdec71 (diff) | |
download | git-bug-afd22acd5ddb6c92e77b7660ef7ee65f4192d7ae.tar.gz |
webui: more readable dates, also localized
Diffstat (limited to 'webui')
-rw-r--r-- | webui/src/components/Date.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webui/src/components/Date.tsx b/webui/src/components/Date.tsx index be0f5835..8438b801 100644 --- a/webui/src/components/Date.tsx +++ b/webui/src/components/Date.tsx @@ -10,8 +10,8 @@ const WEEK = 7 * DAY; type Props = { date: string }; const Date = ({ date }: Props) => ( - <Tooltip title={moment(date).format('MMMM D, YYYY, h:mm a')}> - <Moment date={date} fromNowDuring={WEEK} /> + <Tooltip title={moment(date).format('LLLL')}> + <span>on <Moment date={date} format='ll' fromNowDuring={WEEK} /></span> </Tooltip> ); |