mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Reverting the date formatting (#749)
* Date formatting, part 6 * Update UpdatedDate.tsx * This is a long-shot for the ages * I'm beginning to run out of options * Update UpdatedDate.tsx * One last shot. If this fails, I'll give up. * Reverting to the October 2018 file
This commit is contained in:
parent
9bc4ceede8
commit
e04bfd3705
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import * as React from "react";
|
||||
import * as moment from "moment";
|
||||
|
||||
interface IProps {
|
||||
updatedDate: string;
|
||||
|
|
@ -7,6 +8,8 @@ interface IProps {
|
|||
export const UpdatedDate = (props: IProps) =>
|
||||
props.updatedDate
|
||||
? <li className="list-group-item">
|
||||
<p>Updated: {props.updatedDate.toLocaleString()}</p>
|
||||
<p>Updated: {moment(props.updatedDate).isValid()
|
||||
? moment(props.updatedDate).format("l")
|
||||
: "N/A"}</p>
|
||||
</li>
|
||||
: null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue