date format changed in focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
On Focal, date(1) appears to use 12 hour rather than 24 hour format:
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
$ date
Wed 05 Feb 2020 07:23:03 PM UTC
$ date -u
Wed 05 Feb 2020 07:23:05 PM UTC
It is seriously confusing to see '07' when the time is currently 19:23.
ls(1) still uses 24 hour time:
$ ls -l ubxtool
-rwxrwxr-x 1 sarnold sarnold 874200 Feb 5 18:59 ubxtool
This was very confusing until I noticed the 'PM' in date output.
Xenial:
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
$ date
Wed Feb 5 11:23:20 PST 2020
$ date -u
Wed Feb 5 19:23:20 UTC 2020
This may be related to https:/
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: locales 2.30-0ubuntu3
ProcVersionSign
Uname: Linux 5.4.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
Date: Wed Feb 5 19:23:48 2020
PackageArchitec
ProcEnviron:
TERM=rxvt-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: glibc
UpgradeStatus: Upgraded to focal on 2020-01-24 (11 days ago)
Hi Seth!
My understanding is that the change addresses a previous inconsistency in the en_US locale. Carrying an Ubuntu patch which reverses this upstream glibc change wouldn't be a good idea, right?
If you are opposed to the change, I'd suggest that you file an upstream glibc/localedata bug. With very good arguments. ;)