aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Lane <iain@orangesquash.org.uk>2013-08-22 09:09:20 +0000
committerIain Lane <iain@orangesquash.org.uk>2013-08-22 09:09:20 +0000
commit15dbc4de55b75c5134afc213287162c9703e28df (patch)
tree77275a02b9945be16d411d7a0ba1ccbecdc09028
parent67f0bb690d8836ae3f4c818f9a814615e2bc6049 (diff)
downloadayatana-indicator-datetime-15dbc4de55b75c5134afc213287162c9703e28df.tar.gz
ayatana-indicator-datetime-15dbc4de55b75c5134afc213287162c9703e28df.tar.bz2
ayatana-indicator-datetime-15dbc4de55b75c5134afc213287162c9703e28df.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. :-)
-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);