Explicitly pass utc timezone

This commit is contained in:
Ian Philips 2022-08-19 15:19:52 -06:00
parent 1196ec4375
commit 39c312cf9f
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ const firestore = admin.firestore()
export const resetBettingStreaksForUsers = functions.pubsub
.schedule(`0 ${BETTING_STREAK_RESET_HOUR} * * *`)
.timeZone('utc')
.onRun(async () => {
await resetBettingStreaksInternal()
})

View File

@ -11,6 +11,7 @@ export const weeklyMarketsEmails = functions
.runWith({ secrets: ['MAILGUN_KEY'] })
// every Monday at 12pm PT (UTC -07:00)
.pubsub.schedule('0 19 * * 1')
.timeZone('utc')
.onRun(async () => {
await sendTrendingMarketsEmailsToAllUsers()
})