-
-
- setDraft((current) => ({ ...current, timeOfDay: event.target.value }))
- }
- />
-
on
+ ) : draft.scheduleMode === "fixed" || draft.scheduleMode === "monthly" ? (
+
+
+
+
+
+ setDraft((current) => ({ ...current, timeOfDay: event.target.value }))
+ }
+ />
+ {draft.scheduleMode === "fixed" ? (
+ on
+ ) : null}
+
+ {draft.scheduleMode === "monthly" ? (
+
+
+
+
+ ) : (
+
{
+ if (values.length === 0) return;
+ setDraft((current) => ({
+ ...current,
+ weekdays: new Set(values.map(Number)),
+ }));
+ }}
+ >
+ {WEEKDAY_ORDER.map((day) => (
+
+ {WEEKDAY_SHORT[day]}
+
+ ))}
+
+ )}
-
{
- if (values.length === 0) return;
- setDraft((current) => ({
- ...current,
- weekdays: new Set(values.map(Number)),
- }));
- }}
- >
- {WEEKDAY_ORDER.map((day) => (
-
- {WEEKDAY_SHORT[day]}
-
- ))}
-
+ {draft.scheduleMode === "monthly" ? (
+
+ Uses the environment's time zone. Months without this day are skipped.
+
+ ) : null}
) : (
@@ -1777,7 +1841,14 @@ function ScheduledTaskEditorForm({