Bug 1669056 - Horizon ignoring user settings and displaying dates in default format (Glance Image details)
Summary: Horizon ignoring user settings and displaying dates in default format (Glance...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z9
: 16.1 (Train on RHEL 8.2)
Assignee: Tatiana Ovchinnikova
QA Contact: Radomir Dopieralski
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-24 08:32 UTC by Ravi Singh
Modified: 2022-12-07 20:25 UTC (History)
9 users (show)

Fixed In Version: python-django-horizon-16.2.1-1.20220125210409.ca38848.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 20:24:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
nova_glance & user settings (74.15 KB, application/gzip)
2019-01-24 08:32 UTC, Ravi Singh
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1841049 0 None None None 2019-08-22 11:43:50 UTC
OpenStack gerrit 747046 0 None MERGED Fix Angular mediumDateFilter 2022-01-24 17:19:47 UTC
Red Hat Issue Tracker OSP-10376 0 None None None 2022-01-20 18:59:30 UTC
Red Hat Product Errata RHBA-2022:8795 0 None None None 2022-12-07 20:25:20 UTC

Description Ravi Singh 2019-01-24 08:32:13 UTC
Created attachment 1523019 [details]
nova_glance & user settings

Description of problem:

changing user language settings in horizon dashboard is not reflected in glance image date format whereas same was reflected for nova instances.
 
It seems user settings were not applied to glance images.

Version-Release number of selected component (if applicable):


How reproducible:

changed user settings in horizon dashboard & check date format in instances creation under compute & image date format under images. both date formats are different.

Steps to Reproduce:
1.check date format of instance & image
2. change user settings->language preferences from english to british english
3. check again date format of instance & image.

Actual results:

Date format not changed for glance images but applied(changed) for nova instances.

Expected results:
Date format should change for glance images also.

Additional info:

Comment 3 Cyril Roelandt 2019-02-05 19:15:11 UTC
Hello Ravi,

Sorry for the late answer. I do not think Glance records the date in a language-specific format, but rather as a timestamp. My guess is that Horizon is responsible for formatting the date. Could we ping Horizon developers to get their opinion about this?

Comment 5 Cyril Roelandt 2019-02-06 12:58:15 UTC
Moving to Horizon.

Comment 23 Radomir Dopieralski 2019-08-22 11:47:43 UTC
As far as I can determine, this is due to the Images view being ported to Angular, and the new Angular code ignoring locale while displaying dates. The instance overview view is still in Python, and it uses correct date handling.

This can be worked around by using the old, Python version of that view (see https://docs.openstack.org/horizon/ocata/topics/settings.html#angular-features).

I can't really give ETA on this, as we need to figure out a solution upstream that will work correctly for all the Angular-based views.

Comment 35 errata-xmlrpc 2022-12-07 20:24:45 UTC
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 (Red Hat OpenStack Platform 16.1.9 bug fix and enhancement advisory), 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/RHBA-2022:8795


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