Hide Forgot
Description of problem: PT-BR language date formant in horizon dashboard shows up as yyyy-mm-dd, should be dd-mm-yyyy Version-Release number of selected component (if applicable): python-django-horizon-2015.1.0-11.el7ost.noarch How reproducible: 100% Steps to Reproduce: 1.Change language to pt-br in horizon settings 2. notice date format 3. Actual results: yyyy-mm-dd Expected results: dd-mm-yyyy Additional info:
Where are you seeing the date in the wrong format? In project -> overview?
Created attachment 1146850 [details] screen shot This is where the customer is seeing the date .
The package is actually python-django-horizon-2015.1.2-4.el7ost.noarch . sorry for the confusion.
Jeremy, unfortunately this is a design decision as the format needs to be know beforehand in order to parse the date properly. Its hardcoded in that format, no matter what language is chosen. A change to this will need a change upstream, and probably a big one, so this would be a RFE instead of a bug.
Itxaka, Thanks for the update, can we make this an RFE?
Is this something feasible by Friday 23rd Sept?
I don't think it's feasible. The date format used is ISO 8601, which is an international standard. As far as I know, usage of dash as a separator is restricted to this particular format, so dd-mm-yyyy would actually violate the ISO standard. A proper format would be probably dd.mm.yyyy or dd/mm/yyyy, however, as far as I know, Horizon currently has no way of changing the date/currency/number formatting depending on the locale. It would need to be added -- first a blueprint proposed, then a solution discussed upstream, and finally implemented.
The overview panels where this issue is being seen are being re-worked this cycle to use angularjs rather than django. This may well clean up the date formatting because of the way translation works as we can see on other new panels in horizon. If not, however, following upstream discussion, the community will unfortunately not support changing the overal format to dd-mm-yyyy as that causes confusion for the Americans and yyyy-mm-dd is the most universally accepted.