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
|
export const resetBettingStreaksForUsers = functions.pubsub
|
||||||
.schedule(`0 ${BETTING_STREAK_RESET_HOUR} * * *`)
|
.schedule(`0 ${BETTING_STREAK_RESET_HOUR} * * *`)
|
||||||
|
.timeZone('utc')
|
||||||
.onRun(async () => {
|
.onRun(async () => {
|
||||||
await resetBettingStreaksInternal()
|
await resetBettingStreaksInternal()
|
||||||
})
|
})
|
||||||
|
|
|
@ -11,6 +11,7 @@ export const weeklyMarketsEmails = functions
|
||||||
.runWith({ secrets: ['MAILGUN_KEY'] })
|
.runWith({ secrets: ['MAILGUN_KEY'] })
|
||||||
// every Monday at 12pm PT (UTC -07:00)
|
// every Monday at 12pm PT (UTC -07:00)
|
||||||
.pubsub.schedule('0 19 * * 1')
|
.pubsub.schedule('0 19 * * 1')
|
||||||
|
.timeZone('utc')
|
||||||
.onRun(async () => {
|
.onRun(async () => {
|
||||||
await sendTrendingMarketsEmailsToAllUsers()
|
await sendTrendingMarketsEmailsToAllUsers()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user