GNOME Bugzilla – Bug 658675
inconsistent time format
Last modified: 2014-11-07 15:17:12 UTC
The time format is inconsistent regarding leading zeros #. Translators: Shown in calendar event list, if 24h format #: ../js/ui/calendar.js:68 msgctxt "event list time" msgid "%H:%M" #. Transators: Shown in calendar event list, if 12h format #: ../js/ui/calendar.js:75 msgctxt "event list time" msgid "%l:%M %p" msgid "%H:%M" has leading zeros msgid "%l:%M %p" has no leading zeros ==> suggesting: msgid "%k:%M" for 24h (no leading zeros)
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 644390 ***
Fabio, I cannot understand how this report is a duplicate from the other, could you explain?
I reopen, in doubt
Created attachment 290165 [details] [review] Calendar: Remove leading zeros for 24h time format
Review of attachment 290165 [details] [review]: Nice
Attachment 290165 [details] pushed as 316f825 - Calendar: Remove leading zeros for 24h time format
I don't think it is an inconsistency but rather a convention to use leading zeros in the 24h format and not in the 12h format. http://en.wikipedia.org/wiki/24-hour_clock
Mmmh, I kinda agree here - 12- and 24-hour clocks are already "inconsistent" past noon, so I don't see why this should not apply before noon as well; in fact, this difference allows to know which format is used at *any* time. More importantly, this makes the 24-hour clock format used in calendar events inconsistent with the 24-hour clock format used in the wallclock (top bar), which is quite a bit worse. Either gnome-desktop needs to change as well, or this commit should be reverted. Reopening for further discussion.
Right, seems there's a convention on that, and what fmuellner said. Sorry to accept it that quick.
(In reply to comment #8) > Mmmh, I kinda agree here - 12- and 24-hour clocks are already "inconsistent" I agree. I'm by no means an expert, but it's very common to have the leading zero in the 24h format. convention trumps consistency here.
Created attachment 290176 [details] [review] Revert "Calendar: Remove leading zeros for 24h time format" Leading zeros are common in the 24h format, and indeed used in the wallclock in the top bar. Convention and consistency within the same clock format trumps inconsistency between different time formats, so reverting commit 316f825b2ac718.
Attachment 290176 [details] pushed as 455595f - Revert "Calendar: Remove leading zeros for 24h time format" Reverting as of comment #10