Bug 1830619 - "date" command shows wrong date format for en_US per commonly accepted United States standards
Summary: "date" command shows wrong date format for en_US per commonly accepted United...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 32
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-03 02:49 UTC by Matthew Crews
Modified: 2022-12-13 10:58 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-05-03 03:05:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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