From f73553228fe681012d096e161ade400605168f0d Mon Sep 17 00:00:00 2001 From: Pascal Arlt Date: Mon, 22 Jul 2024 09:48:45 +0200 Subject: [PATCH] Fix action scheduler datetime selection if using maintenance windows (bsc#1228036) Signed-off-by: Pascal Arlt --- web/html/src/components/action-schedule.tsx | 5 +++-- web/spacewalk-web.changes.parlt.fix-MW-datetime-selection | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 web/spacewalk-web.changes.parlt.fix-MW-datetime-selection diff --git a/web/html/src/components/action-schedule.tsx b/web/html/src/components/action-schedule.tsx index 6f3583f9a57d..1630e7752af8 100644 --- a/web/html/src/components/action-schedule.tsx +++ b/web/html/src/components/action-schedule.tsx @@ -14,7 +14,8 @@ export type MaintenanceWindow = { id: number; from: string; to: string; - fromLocalDate: string; + fromMilliseconds: number; + toMilliseconds: number; }; export type ActionChain = { @@ -136,7 +137,7 @@ class ActionSchedule extends React.Component { - const startDateStr = selectedItem.fromLocalDate; + const startDateStr = selectedItem.fromMilliseconds; this.onDateTimeChanged(localizedMoment(startDateStr)); }; diff --git a/web/spacewalk-web.changes.parlt.fix-MW-datetime-selection b/web/spacewalk-web.changes.parlt.fix-MW-datetime-selection new file mode 100644 index 000000000000..a185d79cc05a --- /dev/null +++ b/web/spacewalk-web.changes.parlt.fix-MW-datetime-selection @@ -0,0 +1 @@ +- Fix datetime selection when using maintenance windows (bsc#1228036)