Bug 1883779

Summary: incorrect display consistently on any upgrade that starts/end in the hour of 12pm
Product: OpenShift Container Platform Reporter: kedar <ksalunkh>
Component: Management ConsoleAssignee: ralpert
Status: CLOSED NEXTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: low    
Version: 4.5CC: aos-bugs, jokerman, nijoshi, rhamilto, yanpzhan
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Dates were being displayed incorrectly. I switched our timestamps over to the Moment.js library as part of the recent i18n work, which fixed the issue.
Story Points: ---
Clone Of:
: 1885309 (view as bug list) Environment:
Last Closed: 2020-12-14 22:40:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1885309    
Attachments:
Description Flags
raw yaml file from dup bugzilla none

Description kedar 2020-09-30 08:24:18 UTC
Description of problem:
Cluster Settings -> Update History: incorrect display of times near 12:00

Version-Release number of selected component (if applicable):
v4.3 -> 4.4 -> 4.5

The raw data looks correct (oc get clusterversion version -o yaml)

Actual results:


Expected results:


Additional info:
The upgrade is shown as having a duration 12 hours longer than reality, or 12 hours shorter

Incorrect display consistently on any upgrade that starts/end in the hour of 12pm noon

Comment 1 Jakub Hadvig 2020-09-30 10:31:40 UTC
Created attachment 1717824 [details]
raw yaml file from dup bugzilla

Adding yaml file from the duplicate https://bugzilla.redhat.com/show_bug.cgi?id=1883776

Comment 2 Jakub Hadvig 2020-09-30 10:32:19 UTC
*** Bug 1883776 has been marked as a duplicate of this bug. ***

Comment 3 Robb Hamilton 2020-10-02 12:54:00 UTC
Will investigate next sprint.

Comment 4 Robb Hamilton 2020-10-05 15:09:30 UTC
Rebecca's internationalization PR will fix this in master as we're switching to moment.js there.  See https://github.com/openshift/console/pull/6194.

Comment 5 Yanping Zhang 2020-10-14 12:24:53 UTC
Checked on ocp 4.7 cluster with payload 4.7.0-0.ci-2020-10-13-231404
Checked the time shown on cluster, now it use am/pm correctly.
The bug is fixed.