event-widget: Fix time in tooltip text

The tooltips think all events start and end between 1:00 and 1:59,
because we are missing a % in the format string and the I looks like 1.

I like it when bugs turn out to be easy. Fixes #225.
This commit is contained in:
Michael Catanzaro
2017-12-05 21:50:32 -06:00
parent 91beda2687
commit 8740ca2df1
+4 -4
View File
@@ -352,8 +352,8 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
{
if (is_ltr)
{
start = g_date_time_format (tooltip_start, "%x I:%M %P");
end = g_date_time_format (tooltip_end, "%x I:%M %P");
start = g_date_time_format (tooltip_start, "%x %I:%M %P");
end = g_date_time_format (tooltip_end, "%x %I:%M %P");
}
else
{
@@ -381,8 +381,8 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
{
if (is_ltr)
{
start = g_date_time_format (tooltip_start, "%x, I:%M %P");
end = g_date_time_format (tooltip_end, "I:%M %P");
start = g_date_time_format (tooltip_start, "%x, %I:%M %P");
end = g_date_time_format (tooltip_end, "%I:%M %P");
}
else
{