From 9a62f8986baf1bbfb37fb86636a15f6df99a0ae1 Mon Sep 17 00:00:00 2001 From: Ilank <63646693+ilan7empest@users.noreply.github.com> Date: Wed, 28 Dec 2022 15:41:17 +0200 Subject: [PATCH] Fix [Jobs] Schedule change tooltip in UTC `1.2.1` (#1571) --- src/components/ScheduleCron/ScheduleCron.js | 2 +- src/components/Table/table.scss | 6 +---- .../ScheduleRecurring/ScheduleRecurring.js | 27 +++++-------------- src/utils/createJobsContent.js | 5 ++-- 4 files changed, 11 insertions(+), 29 deletions(-) diff --git a/src/components/ScheduleCron/ScheduleCron.js b/src/components/ScheduleCron/ScheduleCron.js index 295781270..3cb76f1a0 100644 --- a/src/components/ScheduleCron/ScheduleCron.js +++ b/src/components/ScheduleCron/ScheduleCron.js @@ -27,7 +27,7 @@ const ScheduleCron = ({ cron, setCron }) => { <>

Note: all times are interpreted in UTC timezone.
- The first weekday (0) is always Monday. + The first day of the week (0) is Monday, and not Sunday.

{ +const ScheduleRecurring = ({ daysOfWeek, handleDaysOfWeek, recurringDispatch, recurringState }) => { const { scheduleRepeat: { activeOption: scheduleRepeatActiveOption, week }, - scheduleRepeatEnd: { - activeOption: scheduleRepeatEndActiveOption, - occurrences, - date - } + scheduleRepeatEnd: { activeOption: scheduleRepeatEndActiveOption, occurrences, date } } = recurringState const handleScheduleRepeatChange = (value, activeOption) => { @@ -63,7 +54,7 @@ const ScheduleRecurring = ({

Note: all times are interpreted in UTC timezone.
- The first weekday (0) is always Monday. + The first day of the week (0) is Monday, and not Sunday.