Date formatting, take 4 (#747)

This commit is contained in:
Imre Kristoffer Eilertsen 2019-04-06 16:36:49 +02:00 committed by Collin M. Barrett
parent f8ed0f4aeb
commit 3a03d28cd9

View file

@ -8,8 +8,8 @@ interface IProps {
export const UpdatedDate = (props: IProps) =>
props.updatedDate
? <li className="list-group-item">
<p>Updated: {moment(props.updatedDate).isValid()
? moment(props.updatedDate).format("l").toLocaleString()
<p>Updated: {moment(props.updatedDate.toLocaleString()).isValid()
? moment(props.updatedDate.toLocaleString()).format("l")
: "N/A"}</p>
</li>
: null;