aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-03 16:42:08 +0000
committerTarmac <Unknown>2013-10-03 16:42:08 +0000
commit8b4e75ea9ce0a1f8c8be445dbde7de78a62b3caa (patch)
treeeb56b4dea1c05f90f08b2e8fd404aabace14b22d /src/utils.c
parentece762ee2e2fe52b4932e0c1dc6826fa06705c38 (diff)
parent5b22711fc71e6d0eb5dc8075cb7446b71b7549e1 (diff)
downloadayatana-indicator-datetime-8b4e75ea9ce0a1f8c8be445dbde7de78a62b3caa.tar.gz
ayatana-indicator-datetime-8b4e75ea9ce0a1f8c8be445dbde7de78a62b3caa.tar.bz2
ayatana-indicator-datetime-8b4e75ea9ce0a1f8c8be445dbde7de78a62b3caa.zip
Change the tablet time format string to remove leading zeroes from the hour component of the time format (ie, H:MM rather than HH:MM). Fixes: https://bugs.launchpad.net/bugs/1234483.
Approved by PS Jenkins bot, Ted Gould.
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 9b0f24f..bbb24ac 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -301,8 +301,8 @@ get_terse_time_format_string (GDateTime * time)
if (g_date_time_get_minute (time) != 0)
{
- /* a strftime(3) fmt string for a HH:MM 12 hour time, eg "06:59 PM" */
- fmt = T_("%I:%M %p");
+ /* a strftime(3) fmt string for a H:MM 12 hour time, eg "6:59 PM" */
+ fmt = T_("%l:%M %p");
}
else
{