RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2000374 - glibc: Provide English-language locale with 12-hour time
Summary: glibc: Provide English-language locale with 12-hour time
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: glibc
Version: 8.4
Hardware: All
OS: All
medium
medium
Target Milestone: rc
: 8.6
Assignee: Patsy Griffin
QA Contact: Sergey Kolosov
Petr Hybl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-02 02:46 UTC by Chris Cheney
Modified: 2023-07-18 14:30 UTC (History)
9 users (show)

Fixed In Version: glibc-2.28-173.el8
Doc Type: Enhancement
Doc Text:
.New UTF-8 locale `en_US@ampm` with 12-hour clock With this update, you can now use a new UTF-8 locale `en_US@ampm` with a 12-hour clock. This new locale can be combined with other locales by using the `LC_TIME` environment variable.
Clone Of:
Environment:
Last Closed: 2022-05-10 15:17:47 UTC
Type: Enhancement
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-95946 0 None None None 2021-09-02 02:46:33 UTC
Red Hat Product Errata RHBA-2022:2005 0 None None None 2022-05-10 15:18:05 UTC

Internal Links: 2104907

Description Chris Cheney 2021-09-02 02:46:02 UTC
glibc 2.28 in RHEL 8 has a bug that causes 24 hour time to be used in the US.

Instead of using the correct date format RHEL 8 is using the default, which is 24h time:

   "%a %b %e %H:%M:%S %Z %Y"

It should be:

   "%a %b %e %r %Z %Y""


So instead of displaying:

   Wed Sep  1 21:44:02 CDT 2021

It should display:

   Wed Sep  1 09:44:02 PM CDT 2021


This was already fixed in upstream glibc with the following BZs and patches:

   en_US locale doesn't define date_fmt
   https://sourceware.org/bugzilla/show_bug.cgi?id=24046

   Regression: en_US date_fmt and d_t_fmt and "%a %d %b" vs. "%a %b %e"
   https://sourceware.org/bugzilla/show_bug.cgi?id=25923

These patches appear to fix the issue for en_US:

   https://github.com/bminor/glibc/commit/7395f3a0efad9fc51bb54fa383ef6524702e0c49
   https://github.com/bminor/glibc/commit/8cde977077b3568310c743b21a905ca9ab286724

Comment 2 Florian Weimer 2021-09-02 08:10:01 UTC
We do not make such changes to widely used locales after the release of the product because it would rather surprising. For example, it could affect the format of log files, so that automation no longer can parse them after the change.

I suspect the customer is looking for an option to change the desktop clock to 24 hour format. I expect there are different ways to achieve this that do not involve changing the definition of the en_US.utf8 locale.

Comment 8 Florian Weimer 2021-09-06 10:27:07 UTC
We should add at least one 12-hour locale that can be combined with English-language locales, by setting LC_TIME. No such locale exists right now.

Comment 19 errata-xmlrpc 2022-05-10 15:17:47 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 (glibc bug fix and enhancement update), 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:2005


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