[gnome-calendar/gnome-3-26] event-widget: Fix time in tooltip text
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gnome-3-26] event-widget: Fix time in tooltip text
- Date: Wed, 6 Dec 2017 10:50:55 +0000 (UTC)
commit ac6d78225c9274cf3b218d800499641cc3a82e4f
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Tue Dec 5 21:49:05 2017 -0600
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.
src/gcal-event-widget.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gcal-event-widget.c b/src/gcal-event-widget.c
index 9070ee3a..45efb344 100644
--- a/src/gcal-event-widget.c
+++ b/src/gcal-event-widget.c
@@ -296,8 +296,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
{
@@ -325,8 +325,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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]