Add a title with the exact date to dateTime elements that use timeAgo.

This commit is contained in:
Stefan Sundin 2021-04-02 15:12:30 -07:00 committed by Sean Yesmunt
parent 51552b0c53
commit 92e55c7d5f

View file

@ -52,7 +52,7 @@ class DateTime extends React.PureComponent<Props> {
return null;
}
return <span>{DateTime.getTimeAgoStr(date)}</span>;
return <span title={moment(date).format('MMMM Do, YYYY hh:mm A')}>{DateTime.getTimeAgoStr(date)}</span>;
}
return (