From 15dbc4de55b75c5134afc213287162c9703e28df Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Thu, 22 Aug 2013 09:09:20 +0000 Subject: Use month '1' when constructing the 'begin' range to decide which appointments to display. GLib started validating the arguments to g_date_time_new and it turns out that '0' isn't a valid day of the month. :-) --- src/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service.c b/src/service.c index b52556d..3a1841c 100644 --- a/src/service.c +++ b/src/service.c @@ -584,7 +584,7 @@ get_all_appointments_this_month (IndicatorDatetimeService * self) calendar_date = get_calendar_date (self); g_date_time_get_ymd (calendar_date, &y, &m, &d); - begin = g_date_time_new_local (y, m, 0, + begin = g_date_time_new_local (y, m, 1, 0, 0, 0); end = g_date_time_new_local (y, m, g_date_get_days_in_month(m,y), 23, 59, 0); -- cgit v1.2.3