We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing and transformig the rule FREQ=HOURLY;BYSETPOS=-1;BYHOUR=12 leads to warning because of division by zero.
FREQ=HOURLY;BYSETPOS=-1;BYHOUR=12
Warning: Division by zero in ../vendor/simshaun/recurr/src/Recurr/Transformer/ArrayTransformer.php on line 466
Seems this case is specific for HOURLY in combination with BYHOUR and BYSETPOS, it works fine for DAILY.
HOURLY
BYHOUR
BYSETPOS
DAILY
Var $timeSet seems to be empty array because of the condition at line 230.
$timeSet
if ($setPos < 0) { $dayPos = floor($setPos / count($timeSet)); $timePos = DateUtil::pymod($setPos, count($timeSet)); } else { $dayPos = floor(($setPos - 1) / count($timeSet)); $timePos = DateUtil::pymod(($setPos - 1), count($timeSet)); }
I admit there's not much sense in rrule defined like that, but exception might be more appropriate, than a warning.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Parsing and transformig the rule
FREQ=HOURLY;BYSETPOS=-1;BYHOUR=12
leads to warning because of division by zero.Seems this case is specific for
HOURLY
in combination withBYHOUR
andBYSETPOS
, it works fine forDAILY
.Var
$timeSet
seems to be empty array because of the condition at line 230.I admit there's not much sense in rrule defined like that, but exception might be more appropriate, than a warning.
The text was updated successfully, but these errors were encountered: