mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-24 07:55:07 +01:00
Fix creating, editing automations that start weekly on Sunday
This commit is contained in:
parent
ec9add9a51
commit
f2f37ae444
1 changed files with 2 additions and 1 deletions
|
@ -554,7 +554,8 @@ function EditCard(props: EditCardProps) {
|
||||||
? String(rawHourAsNumber + 12)
|
? String(rawHourAsNumber + 12)
|
||||||
: rawHourAsNumber;
|
: rawHourAsNumber;
|
||||||
|
|
||||||
const dayOfWeekNumber = dayOfWeek ? dayOfWeek : "*";
|
// Convert Sunday to 0th (from 7th) day of week for server cron format
|
||||||
|
const dayOfWeekNumber = dayOfWeek !== undefined ? (dayOfWeek === 7 ? 0 : dayOfWeek) : "*";
|
||||||
|
|
||||||
switch (frequency) {
|
switch (frequency) {
|
||||||
case "Day":
|
case "Day":
|
||||||
|
|
Loading…
Reference in a new issue