revert relative time

ref #386
This commit is contained in:
collinbarrett 2018-08-31 13:25:33 -05:00
parent d937bd0fd8
commit b7fda55faa
2 changed files with 2 additions and 2 deletions

View file

@ -131,7 +131,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
? (moment(b).isValid() ? (moment(a).isBefore(b) ? -1 : 1) : 1)
: -1,
Cell: (cell: any) => <div>{moment(cell.value).isValid()
? moment(cell.value).fromNow()
? moment(cell.value).format("l")
: "N/A"}</div>,
style: { whiteSpace: "inherit" },
width: 100,

View file

@ -142,7 +142,7 @@ function DiscontinuedDate(props: any) {
function UpdatedDate(props: any) {
return props.date
? <li className="d-md-none list-group-item">
<p>Last Updated: {moment(props.date).isValid() ? moment(props.date).fromNow() : "N/A"}</p>
<p>Last Updated: {moment(props.date).isValid() ? moment(props.date).format("l") : "N/A"}</p>
</li>
: null;
}