Skip to content

Commit

Permalink
Use correct initial date for DatePicker selects (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktveith authored Nov 18, 2020
1 parent 81ffc34 commit 3d568a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webroot/js/app/components/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ App.Components.DatePickerComponent = Frontend.Component.extend({
}.bind(this));

// Initially update selects
this._updateSelects($($selectContainer).parents('.form-group'), $picker.data('DateTimePicker').getMoment(), $picker);
this._updateSelects($($selectContainer).parents('.form-group'), $picker.data('DateTimePicker').date(), $picker);

$container.data('datePickerApplied', true);
}.bind(this));
Expand Down

0 comments on commit 3d568a7

Please sign in to comment.