Skip to content

Commit 1823a63

Browse files
author
Levi Zitting
authored
Account for another edge case
Setting the month, then the day, then the month again should account for most of the edge cases here.
1 parent b8e24fa commit 1823a63

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

recurrence/static/recurrence/js/recurrence-widget.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ recurrence.widget.Calendar.prototype = {
239239
day != this.date.getDate()) {
240240

241241
this.date.setFullYear(year);
242+
this.date.setMonth(month);
242243
this.date.setDate(day);
243244
this.date.setMonth(month);
244245

@@ -405,7 +406,9 @@ recurrence.widget.DateSelector.prototype = {
405406

406407
if (!this.date)
407408
this.date = recurrence.widget.date_today();
409+
408410
this.date.setFullYear(year);
411+
this.date.setMonth(month);
409412
this.date.setDate(day);
410413
this.date.setMonth(month);
411414

0 commit comments

Comments
 (0)