Bug 1830619

Summary: "date" command shows wrong date format for en_US per commonly accepted United States standards
Product: [Fedora] Fedora Reporter: Matthew Crews <mattcrews>
Component: coreutilsAssignee: Kamil Dudka <kdudka>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 32CC: admiller, alebastr89, jamartis, jarodwilson, jwakely, kdudka, kzak, ooprala, ovasik, p, svashisht
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-03 03:05:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Crews 2020-05-03 02:49:14 UTC
User-Agent:       Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Build Identifier: 

When:

1. Date locale format in terminal is set to:
LC_TIME="en_US.UTF-8"
2. When "date" command is issued, either as "date" alone or "date +%c"

The output date is in the incorrect format.

For example, at the time of this bug, the output is:
Sat 02 May 2020 07:44:45 PM MST

In common United States date format, it should read
Sat May 02, 2020 07:44:45 PM MST


Reproducible: Always

Steps to Reproduce:
1. Set date format environment to "en_US.UTF-8"
2. Issue "date" command or with "date +%c"
Actual Results:  
Date outputs in incorrect date format per United States standards. IE:
Sat 02 May 2020 07:44:45 PM MST

Expected Results:  
Date should output per United States standards. IE
Sat May 02, 2020 07:44:45 PM MST

This is likely an issue with the way that locales are handled.

Comment 1 Matthew Crews 2020-05-03 03:05:45 UTC
I did a little digging into this. It looks like this is a bug in glibc.