diff options
Diffstat (limited to 'webapp/components/post_view/components/post_list.jsx')
-rw-r--r-- | webapp/components/post_view/components/post_list.jsx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx index 3584e9923..5ff95477b 100644 --- a/webapp/components/post_view/components/post_list.jsx +++ b/webapp/components/post_view/components/post_list.jsx @@ -354,7 +354,7 @@ export default class PostList extends React.Component { /> ); - const currentPostDay = Utils.getDateForUnixTicks(post.create_at); + const currentPostDay = new Date(Utils.getDateForUnixTicks(post.create_at).setUTCHours(0, 0, 0, 0)); if (currentPostDay.toDateString() !== previousPostDay.toDateString()) { postCtls.push( <div @@ -363,13 +363,15 @@ export default class PostList extends React.Component { > <hr className='separator__hr'/> <div className='separator__text'> - <FormattedDate - value={currentPostDay} - weekday='short' - month='short' - day='2-digit' - year='numeric' - /> + <time dateTime={currentPostDay.toISOString()}> + <FormattedDate + value={currentPostDay} + weekday='short' + month='short' + day='2-digit' + year='numeric' + /> + </time> </div> </div> ); |