After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 647320 - Don't show a leading zero for the clock hours
Don't show a leading zero for the clock hours
Status: RESOLVED WONTFIX
Product: gnome-shell
Classification: Core
Component: general
3.0.x
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-04-09 22:01 UTC by Hylke Bons
Modified: 2014-11-07 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hylke Bons 2011-04-09 22:01:35 UTC
Don't show a leading zero for the clock hours, because it is useless and clutters the information. I've checked the time formats but there doesn't seem to be a preset without leading zeros, so it will have to be removed manually somehow.
Comment 1 Garrett LeSage 2011-04-09 22:55:57 UTC
I agree.
Comment 2 Marko Myllynen 2011-05-04 10:46:37 UTC
glibc provides the - (dash) flag character extension which causes a leading zero not to be printed (so with %-d one gets "4" on 4th of a month).

Perhaps gnome-shell should allow using this glibc extension in the .po files? Now if one tries to use it gnome-shell crashes.

Thanks.
Comment 3 Dan Winship 2011-05-04 12:19:17 UTC
we use g_date_time_format() for this. I added a note to bug 648678
Comment 4 Bastien Nocera 2014-11-07 17:40:01 UTC
They actually have a use (12h vs. 24h formats), see bug 658675 for details.

Not marking as a duplicate as the other was about the calendar, and this one about the clock specifically.
Comment 5 Florian Müllner 2014-11-07 18:18:42 UTC
(In reply to comment #4)
> Not marking as a duplicate as the other was about the calendar, and this one
> about the clock specifically.

In case someone wants to reopen the discussion, please move the bug to gnome-desktop which defines the format nowadays.