Compare commits

...

1 Commits

Author SHA1 Message Date
Faton Ramadani
072f1777b5 fix(frontend): timezone fix 2023-09-28 15:30:58 +02:00

View File

@@ -2,7 +2,6 @@
import { ScheduleService } from '$lib/gen'
import { emptyString, formatCron } from '$lib/utils'
import Badge from './Badge.svelte'
// @ts-ignore
import Multiselect from 'svelte-multiselect'
import TimezonePicker from 'svelte-timezone-picker'
@@ -15,6 +14,11 @@
export let disabled = false
export let validCRON = true
// If the timezone is not a valid timezone, default to Europe/Paris
$: if (!timezone.includes('/')) {
timezone = 'Europe/Paris'
}
let preview: string[] = []
// If the user has already entered a cron string, switching to the basic tab will override it.
let executeEvery: 'second' | 'minute' | 'hour' | 'day-month' | 'month' | 'day-week' = 'minute'