-
Epic
-
Resolution: Unresolved
-
Major
-
None
-
None
-
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.