Date formatting, take 3 (#746)

This commit is contained in:
Imre Kristoffer Eilertsen 2019-04-06 03:09:00 +02:00 committed by Collin M. Barrett
parent 498b4a8820
commit f8ed0f4aeb

View file

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