mtdowling / cron-expression

CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
http://mtdowling.com/blog/2012/06/03/cron-expressions-in-php/
MIT License
4.89k stars 330 forks source link

Impossible CRON Expression #148

Open brianwebb01 opened 7 years ago

brianwebb01 commented 7 years ago

I'm getting an 'impossible cron expression' error which seems to be a combination of day of the week, the Sydney timezone, and the particular 'current date' of 3/27.

$dateTime = Cron\CronExpression::factory('0 0 * * 1')->getNextRunDate(Carbon\Carbon::create(2017, 3, 27, 0, 0, 0, 'UTC')->timezone('Australia/Sydney'));
robinedwardsordermate commented 7 years ago

We also had this problem, which occurred for Melbourne and Sydney at the start of daylight savings (when clocks were wound back 1 hour), on 2 April. As a workaround we're using Australia/Brisbane until I can figure out how to get Melbourne/Sydney to work.