Date format changed for "en_US" locale between RHEL8 and RHEL9

Solution Verified - Updated -

Issue

  • Up to RHEL8 included, printing the date was printing in 24H format

    $ LC_TIME=en_US.UTF-8 date
    Sat Oct 22 09:54:56 CEST 2022
    
  • Since RHEL9, the date is in 12H format

    $ LC_TIME=en_US.UTF-8 date
    Sat Oct 22 09:54:50 AM CEST 2022
    

Environment

  • Red Hat Enterprise Linux 9
    • glibc
    • en_US locale

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content