Bug 2097319 - Page refresh is required to change the Date & time into selected language.
Summary: Page refresh is required to change the Date & time into selected language.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.11
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Andrew Ballantyne
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-15 12:42 UTC by Krishna Babu K
Modified: 2022-08-10 09:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-22 16:37:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Date & time not in selected locale by default. (2.13 MB, application/x-matroska)
2022-06-15 12:42 UTC, Krishna Babu K
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CONSOLE-2765 0 None None None 2022-08-10 09:29:53 UTC

Description Krishna Babu K 2022-06-15 12:42:06 UTC
Created attachment 1890297 [details]
Date & time not in selected locale by default.

Description of problem:
 Date & time by default appearing as per en_US locale instead of selected locale of the User. Only after refreshing the page, the date & time appears as per locale of the User.

Version-Release number of selected component (if applicable):
    4.11.0-0.nightly-2022-06-14-172335

How reproducible:
Always

Steps to Reproduce:
1. Set language for User (for e.g. Korean)
2. Date & time on Overview page is appearing in English by default
3. After refreshing the page, the Date & time appeared as per User's language.

Actual results:
Page refresh is required to change the Date & time into selected language

Expected results:
Date & time should appear in selected language by default.

Additional info:
Screencast reference attached

Comment 1 Andrew Ballantyne 2022-06-22 16:37:19 UTC
The issue behind thie bug is the way we setup the date/time translations. It currently pulls them once at the first usage and then never updates it again. this is a side-effect of the way JavaScript modules work.

The work to solve this bug would require us to refactor the structure of the code. But the effort behind https://issues.redhat.com/browse/CONSOLE-2765 will require the refactoring of the code some more to support a user preference setting. Since the effort is double fold to refactoring, it was concluded that we would roll this bug up into that feature and support user preferences around date/time as well as address this bug around stale language date/time values.

See https://issues.redhat.com/browse/CONSOLE-2765 for the progress behind this bug.


Note You need to log in before you can comment on or make changes to this bug.