Skip to content

Commit

Permalink
Fix: Pass missing timezone to DatePicker component
Browse files Browse the repository at this point in the history
Timezone prop for the DatePicker component was missing for the
"Run Until"
  • Loading branch information
a-h-abdelsalam authored and bjoernricks committed Apr 8, 2024
1 parent 9553940 commit 2c07b19
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/web/pages/schedules/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ class ScheduleDialog extends React.Component {
const {
duration,
timezone = 'UTC',
startDate = date()
.tz(timezone)
.startOf('hour')
.add(1, 'hour'),
startDate = date().tz(timezone).startOf('hour').add(1, 'hour'),
} = props;
let {freq, interval = 1, weekdays, monthdays} = this.props;

Expand Down Expand Up @@ -469,6 +466,7 @@ class ScheduleDialog extends React.Component {
<FormGroup title={_('Run Until')}>
<DatePicker
disabled={state.endOpen}
timezone={timezone}
name="endDate"
value={state.endDate}
onChange={this.handleValueChange}
Expand Down

0 comments on commit 2c07b19

Please sign in to comment.