To specify a particular time zone in a Scheduled Cloud Function, you can use the timeZone
parameter when configuring the schedule. This parameter accepts a string value that represents the time zone in the format of Area/Location
such as "America/New_York" or "Asia/Tokyo".
For example, to schedule a function to run every day at 9:00 AM EST, you can set the timeZone
parameter to "America/New_York" as follows:
exports.scheduledFunction = functions.pubsub.schedule('every day 09:00').timeZone('America/New_York').onRun((context) => {
console.log('This will be run every day at 9:00 AM EST!');
});
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-29 00:53:44 +0000
Seen: 12 times
Last updated: May 29 '23
How to convert time differences between different time zones?
Can the time zone be configured to Europe/Berlin in Google Cloud Scheduler?
As a beginner in data analysis, how can I connect my cloud editor to cloud Dataproc for Hadoop?
What is the method to modify the data of a firestore document using a firebase cloud function?
How can I utilize the official SDK to acquire a file from Huawei cloud?
What is the process of uploading files to OSS cloud service using Flutter?
How can a whole collection be removed using Cloud Functions?
How can several occurrences of Spring Cloud Kafka Binder be utilized to write to a common file?