Skip to content

Commit b8e24fa

Browse files
author
Levi Zitting
committed
Change order that month and date are set
1 parent 3a82c3b commit b8e24fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

241241
this.date.setFullYear(year);
242-
this.date.setMonth(month);
243242
this.date.setDate(day);
243+
this.date.setMonth(month);
244244

245245
recurrence.array.foreach(
246246
this.elements.month_grid.cells, function(cell) {
@@ -406,8 +406,8 @@ recurrence.widget.DateSelector.prototype = {
406406
if (!this.date)
407407
this.date = recurrence.widget.date_today();
408408
this.date.setFullYear(year);
409-
this.date.setMonth(month);
410409
this.date.setDate(day);
410+
this.date.setMonth(month);
411411

412412
this.elements.date_field.value = datestring;
413413

0 commit comments

Comments
 (0)