aboutsummaryrefslogtreecommitdiff
path: root/tests/test-utils.cc
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 /tests/test-utils.cc
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 'tests/test-utils.cc')
-rw-r--r--tests/test-utils.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-utils.cc b/tests/test-utils.cc
index c757a11..d0f277b 100644
--- a/tests/test-utils.cc
+++ b/tests/test-utils.cc
@@ -78,12 +78,12 @@ TEST (UtilsTest, GenerateTerseFormatString)
GDateTime * time;
const char * expected_format_string;
} test_cases[] = {
- { g_date_time_ref(arbitrary_day), g_date_time_ref(arbitrary_day), "%I:%M %p" }, /* identical time */
- { g_date_time_ref(arbitrary_day), g_date_time_add_hours(arbitrary_day,1), "%I:%M %p" }, /* later today */
- { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,1), "Tomorrow" EM_SPACE "%I:%M %p" }, /* tomorrow */
- { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,2), "%a" EM_SPACE "%I:%M %p" },
- { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,6), "%a" EM_SPACE "%I:%M %p" },
- { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,7), "%d %b" EM_SPACE "%I:%M %p" }, /* over one week away */
+ { g_date_time_ref(arbitrary_day), g_date_time_ref(arbitrary_day), "%l:%M %p" }, /* identical time */
+ { g_date_time_ref(arbitrary_day), g_date_time_add_hours(arbitrary_day,1), "%l:%M %p" }, /* later today */
+ { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,1), "Tomorrow" EM_SPACE "%l:%M %p" }, /* tomorrow */
+ { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,2), "%a" EM_SPACE "%l:%M %p" },
+ { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,6), "%a" EM_SPACE "%l:%M %p" },
+ { g_date_time_ref(arbitrary_day), g_date_time_add_days(arbitrary_day,7), "%d %b" EM_SPACE "%l:%M %p" }, /* over one week away */
{ g_date_time_ref(on_the_hour), g_date_time_ref(on_the_hour), "%l %p" }, /* identical time */
{ g_date_time_ref(on_the_hour), g_date_time_add_hours(on_the_hour,1), "%l %p" }, /* later today */