]> Sergey Matveev's repositories - public-inbox.git/commit
*view: avoid leading zero in time display of the hour
authorEric Wong <e@80x24.org>
Sat, 5 Dec 2015 02:08:01 +0000 (02:08 +0000)
committerEric Wong <e@80x24.org>
Sat, 5 Dec 2015 02:16:55 +0000 (02:16 +0000)
commitc0805dfcd9a7b077c6ac4fa2cec31af60d50133e
treefb5036e6d67ac0e1a58b91d1968955833b32cc5a
parent5bf2748a96a2ef3d1c49ff5b5354c65fd82b7545
*view: avoid leading zero in time display of the hour

Avoid the visual noise entirely by using a space instead.

I sometimes have difficulty distinguishing '0' from '8' while
other users may mistake it for an 'O' character.  Most digital
clocks I've seen will omit displaying a leading zero for the
hour, too.

This may also save transfer time by allowing better compression
(since there is a space between the date and time anyways) and
perhaps reduce client rendering time on some displays.

We'll leave the leading zero for minutes since that seems pretty
standard for digital clocks.
lib/PublicInbox/SearchView.pm
lib/PublicInbox/View.pm