aboutsummaryrefslogblamecommitdiffstats
path: root/webui/src/Date.js
blob: b20fd274087a6f11ceb5d66199e52d1536e7f180 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                               
import Tooltip from '@material-ui/core/Tooltip/Tooltip'
import * as moment from 'moment'
import React from 'react'

const Date = ({date}) => (
  <Tooltip title={moment(date).format('MMMM D, YYYY, h:mm a')}>
    <span> {moment(date).fromNow()} </span>
  </Tooltip>
)

export default Date