mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +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)
|
||||
: 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) {
|
||||
case "Day":
|
||||
|
|
Loading…
Reference in a new issue