Explicitly pass utc timezone
This commit is contained in:
parent
1196ec4375
commit
39c312cf9f
|
@ -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()
|
||||
})
|
||||
|
|
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user