Red Hat Bugzilla – Bug 842781
Date is not formatted to locale
Last modified: 2012-08-02 16:58:59 EDT
Description of problem:
The date search field in the subscription manager gui is not localized for any locale setting.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start up subscription-manager-gui with any valid LANG setting
2. Register to your system
3. Go to the 'All Available Subscriptions' tab
4. Check the format of the search date under: "Show subscription active on:"
In the cli-
[root@jmolet-vm0 ~]# LANG="en_US.UTF-8" subscription-manager list --avail
..... ^ locale should be this format
In the gui, the "Show subscription active on:" is always in format '2012-07-24' no matter which LANG you are running.
the "Show subscription active on:" date is always in the right locale format.
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release. Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products. This request is not yet committed for inclusion in
I removed the localized date format intentionally:
Author: Adrian Likins <firstname.lastname@example.org>
Date: Fri Jul 20 14:00:17 2012 -0400
Use ISO8601 date format in allsubs tab
Previously we were using the localized date
format (ala, strftime('%s')) which is lovely,
but is more or less impossible to parse, even
by the tools that claim to (for ex, strptime('%x')).
We had worked around this in a few cases, by
falling back to en_GB localized date format,
but that was pretty much just a kluge. For
bonus fun, some of the dates would only
fail to parse on double digit months. Or for
some locales, specific months that had
unicode char's the date parser didn't like.
In addition, strptime() is especially broken
on python 2.4 available on RHEL 5 and earlier.
So, enough of that. ISO8601 dates it is.
- remove locale kluge
- remove unit tests specifically for that kluge
- add test cases for widgets.DatePicker