mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Date formatting, take 4 (#747)
This commit is contained in:
parent
f8ed0f4aeb
commit
3a03d28cd9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue