datetime: Show 12 instead of 0 for 12h hour format
authorRay Strode <rstrode@redhat.com>
Mon, 17 Jan 2011 19:15:18 +0000 (14:15 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 17 Jan 2011 19:31:34 +0000 (14:31 -0500)
commite8120dc4ce75b0cff6d45632e5d9037853ad51ae
treefed89b822d96bb1420157ca5315e6bc3ef208969
parenta437c5e768b9a62b550e174b25413ce9149fcdbe
datetime: Show 12 instead of 0 for 12h hour format

The 12h mode hour format is computed by taking the
24h mode hour format modulo 12.

The conversion results in 12 noon getting erroneously
converted to 0.

This commit makes noon get the same special handling
as midnight.
glib/gdatetime.c