TIP 08 / 73

Schedule Laravel Job Based on Time Zone.

Do you know you can schedule laravel job based on time zone

Setting Timezone for One Command:

php
$schedule->command('reportg:generate')
         ->timezone('America/New_York')
         ->at('2:00');

If you are repeatedly assigning the same timezone to all of your schedule tasks, you may wish to define a scheduleTimezone method in you app\Console\Kernel class:

php
protected function scheduleTimezone()
{
     return 'America/Chicago';
}