Run cron job at 12 am in every time zone

后端 未结 1 847
陌清茗
陌清茗 2021-01-29 13:12

So I think there is around 30 minutes between each time zone. I want to run my script cron.php for at 12 am (midnight) for every time zone. How can I do this?

相关标签:
1条回答
  • 2021-01-29 13:24

    Most time zones are 1 hour apart, with a couple of exceptions. The above code will run at 7 AM in each of the time zones listed.

    It might be better to have a script that runs every hour and just kick that off once in your own time zone

    0 讨论(0)
提交回复
热议问题