Codebase list gnome-maps / 5a53cf4
transitOptionsPanel: Fix one-off error when setting date When setting the GtkCalendar date when clicking the date button when using "Leave By" or "Arrive By" we need to subtact one to the month value, as the select_month() method expects 0-based months. Marcus Lundblad 1 year, 10 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
137137 _updateTransitDateButton(date) {
138138 let calendar = this._transitDateButton.popover.get_child();
139139
140 calendar.select_month(date.get_month(), date.get_year());
140 calendar.select_month(date.get_month() - 1, date.get_year());
141141 calendar.select_day(date.get_day_of_month());
142142 this._transitDateButton.label =
143143 /*