aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-07-30 16:01:24 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-07-30 16:01:24 -0500
commita60f5e911160d1f0b15e40a1eefe429b5fe973f9 (patch)
tree59b9e5762a73bcb1ebcb401cfdf042c457dd973e /src/utils.c
parentd5aaabfd15c782cae1515b5edf221951c43dcb9d (diff)
downloadayatana-indicator-datetime-a60f5e911160d1f0b15e40a1eefe429b5fe973f9.tar.gz
ayatana-indicator-datetime-a60f5e911160d1f0b15e40a1eefe429b5fe973f9.tar.bz2
ayatana-indicator-datetime-a60f5e911160d1f0b15e40a1eefe429b5fe973f9.zip
remove the leading zero from the terse time format string.
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index d18a5cc..b99de94 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -294,13 +294,13 @@ 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 */
+ /* a strftime(3) fmt string for a HH:MM 12 hour time, eg "06:59 PM" */
fmt = T_("%I:%M %p");
}
else
{
- /* a strftime(3) fmt string for a HH 12 hour time */
- fmt = T_("%I %p");
+ /* a strftime(3) fmt string for a 12 hour on-the-hour time, eg "7 PM" */
+ fmt = T_("%l %p");
}
return fmt;