From 8af1e6c02a47432e29426a11188b347194e927c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Thu, 29 Jan 2015 09:20:27 -0500 Subject: [PATCH] window: month view navigation fixed for February Since February have 28 days sometimes when you add month to January, 29 icaltime_normalize() takes you to February, 29 which is actually, March, 1. The same happens for January 30 and 31. --- src/gcal-window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gcal-window.c b/src/gcal-window.c index 8a922f7c..b435cc92 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -374,6 +374,7 @@ date_updated (GtkButton *button, new_date->day += 7 * (move_back ? -1 : 1); break; case GCAL_WINDOW_VIEW_MONTH: + new_date->day = 1; new_date->month += 1 * (move_back ? -1 : 1); break; case GCAL_WINDOW_VIEW_YEAR: