Skip to content

Commit

Permalink
Fix action scheduler datetime selection if using maintenance windows
Browse files Browse the repository at this point in the history
(bsc#1228036)

Signed-off-by: Pascal Arlt <[email protected]>
  • Loading branch information
parlt91 authored and admd committed Jul 24, 2024
1 parent c6eaa93 commit f735532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/html/src/components/action-schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export type MaintenanceWindow = {
id: number;
from: string;
to: string;
fromLocalDate: string;
fromMilliseconds: number;
toMilliseconds: number;
};

export type ActionChain = {
Expand Down Expand Up @@ -136,7 +137,7 @@ class ActionSchedule extends React.Component<ActionScheduleProps, ActionSchedule
};

onMaintenanceWindowChanged = (selectedItem: MaintenanceWindow) => {
const startDateStr = selectedItem.fromLocalDate;
const startDateStr = selectedItem.fromMilliseconds;
this.onDateTimeChanged(localizedMoment(startDateStr));
};

Expand Down
1 change: 1 addition & 0 deletions web/spacewalk-web.changes.parlt.fix-MW-datetime-selection
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix datetime selection when using maintenance windows (bsc#1228036)

0 comments on commit f735532

Please sign in to comment.