Hide Forgot
Description of problem: In the OpenShift web-console there is an inconsistency in the time formats shown in the "Overview -- Status" (time format = am/pm) and "Overview -- Activity" (time format = 24 hours) sections. Version-Release number of selected component (if applicable): OpenShift version 4.x. However I checked it in 4.3.29 as well as 4.4.12. How reproducible: Always Actual results: Time format inconsistency Expected results: Both the time formats should be same. Either am/pm format or 24 hours format.
We did not have time to fix this issue this sprint. Will reevaluate and try to fix in next sprint.
@jhadvig @spadgett which time format do we want to use ? We use mostly am/pm format but charts and overview events card are using 24hrs.
I'd generally suggest am/pm unless there's not enough room to make it fit. Probably we should use the `short` format from `Intl.DateTimeFormat` so it's formatted for the user's locale. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
Or perhaps moment.js localized format `LT` https://momentjs.com/docs/#/displaying/format/
There is a related fix in https://github.com/openshift/console/pull/8365 where we localize the time formats for the query browser.
*** Bug 1948892 has been marked as a duplicate of this bug. ***
*** Bug 1930444 has been marked as a duplicate of this bug. ***
1. Cluster Setting page 'Update history' table shows Completed time with format: Date, Year, Time(im AM/PM format), such as Apr 19, 2021, 7:50 AM 2. Home -> Overview -> Status shows alerts with format: Date, Year, Time(im AM/PM format), such as Apr 19, 2021, 9:53 AM 3. Home -> Overview -> Events also shows events with format: Time(in AM/PM format), such as 9:58 AM 4. For projects creation date, node creation date, we use format: Date, Year, Time(im AM/PM format), such as Apr 19, 2021, 7:34 AM with Year included It looks like every place is using consistent time format and working as expected. Going to move the bug to VERIFIED, this is checked against 4.8.0-0.nightly-2021-04-18-101412
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2438