aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-03 16:16:24 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-10-03 16:16:24 -0500
commitd9deaaaeb8c09db33539b498effe88b549d15b0f (patch)
tree29f151cc339fbef7f0b89491a07875bf58cda6c1 /src/utils.c
parent8b4e75ea9ce0a1f8c8be445dbde7de78a62b3caa (diff)
downloadayatana-indicator-datetime-d9deaaaeb8c09db33539b498effe88b549d15b0f.tar.gz
ayatana-indicator-datetime-d9deaaaeb8c09db33539b498effe88b549d15b0f.tar.bz2
ayatana-indicator-datetime-d9deaaaeb8c09db33539b498effe88b549d15b0f.zip
phone: show appointments at 1AM as '1 AM', clock times as '1:00 AM'
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index bbb24ac..60fd393 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -294,6 +294,13 @@ get_terse_date_format_string (date_proximity_t proximity)
return fmt;
}
+const gchar*
+get_terse_header_time_format_string (void)
+{
+ /* a strftime(3) fmt string for a H:MM 12 hour time, eg "6:59 PM" */
+ return T_("%l:%M %p");
+}
+
const gchar *
get_terse_time_format_string (GDateTime * time)
{
@@ -301,8 +308,7 @@ get_terse_time_format_string (GDateTime * time)
if (g_date_time_get_minute (time) != 0)
{
- /* a strftime(3) fmt string for a H:MM 12 hour time, eg "6:59 PM" */
- fmt = T_("%l:%M %p");
+ fmt = get_terse_header_time_format_string ();
}
else
{