Closed kingktulu closed 12 years ago
Passing a timestamp to getRunDate, PHP needs the Timezone set if you are not dealing in UTC.
Simple fix, just add the last line below. Fixed all my troubles.
protected function getRunDate($currentTime = null, $nth = 0, $invert = false, $allowCurrentDate = false) { $currentDate = $currentTime instanceof DateTime ? $currentTime : new DateTime($currentTime ?: 'now'); $currentDate->setTimezone(new DateTimeZone(date_default_timezone_get()));
Thanks for the report. Could you submit a PR for the fix and add test coverage? Thanks!
Passing a timestamp to getRunDate, PHP needs the Timezone set if you are not dealing in UTC.
Simple fix, just add the last line below. Fixed all my troubles.