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

Convert ClusterCreatedIndicator 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 ClusterCreatedIndicator from using the custom methods in getTrialExpiresDates to use PatternFly's TimeStamp component. 

      If possible, the same date/time format will be used.  A locale should be set. 

       

      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}
             locale='en-GB'>
                  {!myDate && "unknown date"}
         </Timestamp> 

       

       

              kdoberst Kim Doberstein
              kdoberst Kim Doberstein
              Denis Ragan Denis Ragan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: