Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-3804

Convert Timestamp.tsx to use PatternFly's TimeStamp component

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Center-UI-Team
    • Quality / Stability / Reliability
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • OCMUI Team Sprint 278

      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> 

       

       

              kdoberst Kim Doberstein
              kdoberst Kim Doberstein
              Aleš Pecha Aleš Pecha
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: