Date doesn't respect LC_TIME

Bug #34717 reported by Tero Karvinen
4
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Coreutils 'date' command does not display date in the format mandated by LC_TIME.

To reproduce:
1) set locale to en_DK.utf8. Time locale can be chosen with 'export LC_TIME=en_DK.utf8' or by choosing "English (Danish)" in gdm login screen.
2) $ locale|grep TIME
LC_TIME=en_DK.utf8
3) $ date
Mon Mar 13 10:23:30 EET 2006

It should show the time in international ISO-8601 format, something like 'date --iso=min': "2006-03-13T10:26+0200"

http://www.debian.org/doc/manuals/debian-reference/ch-tune.en.html#s-ISO-locale

description: updated
Revision history for this message
Matt Zimmerman (mdz) wrote :

It's not clear to me that it is intended to display the date in a localized format, and changing a traditional UNIX tool like this tends to break scripts

Revision history for this message
Tero Karvinen (karvinen+launchpad) wrote :

I'm starting to believe that you are right. Just noticed there is already a mechanism to show date in current locale. It's just not on by default:
$ LC_TIME="en_US.UTF-8" date +"%x %X"
04/13/2006 04:12:08 PM
$ LC_TIME="en_DK.UTF-8" date +"%x %X"
2006-04-13 16:12:13

I think this bug could be closed.

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 34717] Re: Date doesn't respect LC_TIME

Closing according to reporters comments

 status Rejected

Changed in coreutils:
status: Unconfirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.