fixed date format

This commit is contained in:
arpitnath 2021-08-09 17:55:47 +05:30
parent 66eac07917
commit ee8e99f2f7

View file

@ -9,6 +9,7 @@ import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
import { renderTooltip } from '@/_helpers/appUtils';
import { ConfirmDialog } from '@/_components';
import { toast } from 'react-toastify';
import moment from 'moment'
class HomePage extends React.Component {
constructor(props) {
@ -201,7 +202,7 @@ class HomePage extends React.Component {
<td className="col p-3">
<span className="app-title mb-3">{app.name}</span> <br />
<small className="pt-2 app-description">
created {Date(app.created_at)} ago by {app.user.first_name} {app.user.last_name}{' '}
created {moment(app.created_at).fromNow()} ago by {app.user.first_name} {app.user.last_name}{' '}
</small>
</td>
<td className="text-muted col-auto pt-4">