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
137 | 137 | _updateTransitDateButton(date) { |
138 | 138 | let calendar = this._transitDateButton.popover.get_child(); |
139 | 139 | |
140 | calendar.select_month(date.get_month(), date.get_year()); | |
140 | calendar.select_month(date.get_month() - 1, date.get_year()); | |
141 | 141 | calendar.select_day(date.get_day_of_month()); |
142 | 142 | this._transitDateButton.label = |
143 | 143 | /* |