mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Fix creating, editing automations that start weekly on Sunday
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user