Skip to main content
Defined in: core/types.ts:322 Options of a plain (in-memory) cron task: bot.schedule(cron, { timeZone }, fn). Add an id (see DurableTaskOptions) to make it durable.

Properties

timeZone?

Defined in: core/types.ts:332 IANA zone the five cron fields are read in ('America/Bogota', 'Europe/Madrid', 'UTC'), or 'local' (the process zone). Default: SchedulerOptions.timeZone, else the process zone. Daylight-saving rules: a fixed-hour slot in a skipped hour runs once, shifted forward by the gap (02:30 → 03:30); in a repeated hour it runs once, at the first occurrence; wildcard-hour slots (an hour field starting with *) follow the real clock (none in a skipped hour, both passes of a repeated one). An unknown zone throws a RangeError when the task is registered.