-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
In order to assist with display date consistency, display dates across the application will use PatternFly's Timestamp component.
The purpose of this story is to convert Timestamp.tsx from using 'toLocalTimeString()' to use PatternFly's TimeStamp component.
If possible, the same date/time format will be used.
Implementation details:
You can pass an optional child component that will override props sent to the Timestamp component. So for example if you want to put in "unknown date" if a date isn't known, it would look something like this:
<Timestamp
date={myDate}
dateFormat={TimestampFormat.medium}
timeFormat {TimestampFormat.medium}
>
{!myDate && "N/A"}
</Timestamp>
- links to