Skip to content

Commit

Permalink
Bugfix: cancel until midnight correctly (#714) (partially revert fd81384
Browse files Browse the repository at this point in the history
)
  • Loading branch information
eynimeni committed Dec 2, 2024
1 parent 088db3f commit 5e2eef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/booking_option.php
Original file line number Diff line number Diff line change
Expand Up @@ -3125,7 +3125,8 @@ public static function return_cancel_until_date($optionid) {
$allowupdatedays--; // We set 00:00 of the previous day.
$datestring = "midnight - $allowupdatedays days";
} else {
$allowupdatedays = abs($allowupdatedays); // We set 00:00 of the next day.
$allowupdatedays++; // We set 00:00 of the next day.
$allowupdatedays = abs($allowupdatedays);
$datestring = "midnight + $allowupdatedays days";
}
$canceluntil = strtotime($datestring, $starttime);
Expand Down

0 comments on commit 5e2eef9

Please sign in to comment.