Bluehost - Run cron job at specific local time

By xngo on December 11, 2019

Bluehost servers are set to use USA/MDT(GMT-00:00). In order to run your cron job to your specific local time, you have to compare the server time and your local time. Subtract or add the difference to your cron job.

For example, my local time zone is Eastern Standard Time(EDT), which is GMT-05:00. If I want to schedule a cron job to run at 2AM Montreal time, then my cron job should be set to run at 7AM (2AM+5).

Time zone - Different between GMT vs EDT

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.