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:
@@ -352,8 +352,8 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
|
|||||||
{
|
{
|
||||||
if (is_ltr)
|
if (is_ltr)
|
||||||
{
|
{
|
||||||
start = g_date_time_format (tooltip_start, "%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");
|
end = g_date_time_format (tooltip_end, "%x %I:%M %P");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -381,8 +381,8 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
|
|||||||
{
|
{
|
||||||
if (is_ltr)
|
if (is_ltr)
|
||||||
{
|
{
|
||||||
start = g_date_time_format (tooltip_start, "%x, I:%M %P");
|
start = g_date_time_format (tooltip_start, "%x, %I:%M %P");
|
||||||
end = g_date_time_format (tooltip_end, "I:%M %P");
|
end = g_date_time_format (tooltip_end, "%I:%M %P");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user