Search code examples
timecronjobszone

Is cron job time based or is it server timezone based?


I have a cron job that is set to run at midnight. I would like to know if this is midnight from the server timezone or is it as soon as i create the cron job i have to wait 24h until it's being executed?


Solution

  • You don't have to wait 24 hours. The cron in launched in the scheduled hour based on server's time.