Back

[SOLVED] CRON job timezone

  • 0
  • Functions
FUZZY
14 Jul, 2023, 09:08

Which timezone does function CRON job use by default and is there a way to specify? https://appwrite.io/docs/functions#scheduled-execution

TL;DR
The user wanted to know if it's possible to change the default timezone for a CRON job and if there is a way to specify the timezone for scheduling. The solution is that CRON jobs in general run in UTC time. It's considered best practice to use UTC for server-side timestamps. So there is no way to change the default timezone for CRON jobs, but you can manually adjust the scheduled time based on the desired timezone.
Drake
14 Jul, 2023, 17:07

I'm pretty sure the cron runs in UTC time

FUZZY
17 Jul, 2023, 06:42

Thanks. Is there a way to change the default timezone to my local one?

Drake
17 Jul, 2023, 16:43

no...but you shouldn't. it's best practice to always use UTC for server-side timestamps

FUZZY
18 Jul, 2023, 01:03

Ok, thanks!

FUZZY
20 Jul, 2023, 08:17

[SOLVED]CRON job timezone

Drake
20 Jul, 2023, 17:10

[SOLVED] CRON job timezone

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more