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
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.