diff --git a/stacks/gcp/GcpStack.ts b/stacks/gcp/GcpStack.ts index ec3fb50..5de4a7b 100644 --- a/stacks/gcp/GcpStack.ts +++ b/stacks/gcp/GcpStack.ts @@ -118,6 +118,7 @@ export default class GcpStack extends TerraformStack { new CloudSchedulerJob(this, "scheduler-" + func.name, { name: func.name, schedule: func.schedule, + timeZone: func.timeZone, pubsubTarget: { topicName: `projects/${this.options.gcpOptions.project}/topics/${scheduledTopic.name}`, data: "c2NoZWR1bGU=", diff --git a/types/runtime.ts b/types/runtime.ts index 26a32ec..41c86b3 100644 --- a/types/runtime.ts +++ b/types/runtime.ts @@ -32,6 +32,7 @@ export type EventConfig = { export type ScheduleConfig = { type: "schedule"; schedule: string; + timeZone?: string; } & FunctionConfig; export type QueueConfig = {