aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Lane <iain@orangesquash.org.uk>2013-08-22 14:18:42 +0000
committerTarmac <Unknown>2013-08-22 14:18:42 +0000
commitbb89b40d70400a4650f2c4cd1b6e1bade3923456 (patch)
tree77275a02b9945be16d411d7a0ba1ccbecdc09028
parent67f0bb690d8836ae3f4c818f9a814615e2bc6049 (diff)
parent15dbc4de55b75c5134afc213287162c9703e28df (diff)
downloadayatana-indicator-datetime-bb89b40d70400a4650f2c4cd1b6e1bade3923456.tar.gz
ayatana-indicator-datetime-bb89b40d70400a4650f2c4cd1b6e1bade3923456.tar.bz2
ayatana-indicator-datetime-bb89b40d70400a4650f2c4cd1b6e1bade3923456.zip
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.
Approved by PS Jenkins bot, Sebastien Bacher.
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
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);