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 <parlt@suse.com>
  • Loading branch information
parlt91 committed Jul 22, 2024
1 parent 54e2ece commit 28f4a3c
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 28f4a3c

Please sign in to comment.