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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user