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

Convert display dates to use PatternFly

    • Change date package
    • False
    • False
    • In Progress
    • 0% To Do, 38% In Progress, 63% Done
    • (10/16) 6 child issues in QE 'Review'

      Description

      The purpose of this epic is to remove the need for redhat-cloud-services/frontend-components/DateFormat and other related custom date formatting.  In addition, this epic will present all dates in a more uniformed way and since display dates will be using the same component, this will make future updates/adjustments easier.

      Success Criteria

      • There are no imports to @redhat-cloud-services/frontend-components/DateFormat in the code base
      • All display dates will use the PatternFly component

      Out of Scope

      • Any changes or additions to behavior
      • Any special formatting of dates.  When possible the same date format that is currently displayed will be used.  If this is not possible, the closest available date format will be used.

       

      --------------------------------------------------------------------------------------

       

      Implementation details

      PatternFly component: https://www.patternfly.org/components/timestamp

      While eventually it is ideal that the date is formatted on the user's locale (done automatically with the TimeStamp component), but there are concerns that this may cause issues in both the unit and automated tests. For this reason, for now, a locale param will be passed to the TimeStamp component unless the current code explicitly uses the user's locale ensuring that the format of the date will be the same regardless of the user's locale.

              dtaylor@redhat.com David Taylor
              kdoberst Kim Doberstein
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: