Cron jobs regions [vercel]

Hello,
i hope i’m on the rigth place to talk about this, I’m based in France and using cron jobs on Vercel. I currently run a job at 23:58, which works well, and I’ve set it to 58 21 * * * in my vercel.json. However, with summer and winter time changes, I’m wondering if Vercel has considered adding region-based timezone configuration options for cron jobs.
Is this something that’s been discussed, or is it considered too complex or resource-intensive?

Alternatively, I run the job between 21:58 and 22:58 and filter it in my route using getFrenchTimezoneOffset and some blablabla like this it’s always do the job at 23h58
This seems like an easy workaround, but I’d love to hear your thoughts about this cron job region functionality coz i’m curious.

Thank you (merci).

Hi @sthiefaine, thanks for sharing your insightful post. I think the solution you picked is the most appropriate in this scenario.

The timezone in the serverless environment is set to UTC irrespective of the region where the function executes. So, I think handling the timezone inside the code is a better approach.