| ... | ... |
@@ -412,6 +412,11 @@ class WeinanlieferungSlotAssistantController extends AbstractController |
| 412 | 412 |
return; |
| 413 | 413 |
} |
| 414 | 414 |
|
| 415 |
+ $now = time(); |
|
| 416 |
+ $intNewSlots = 0; |
|
| 417 |
+ $intBuffer = intval(Input::post('buffer')) * 60;
|
|
| 418 |
+ $intDuration = (int) $SlotType->duration*60; |
|
| 419 |
+ |
|
| 415 | 420 |
// Get timespans |
| 416 | 421 |
foreach (Input::post('timeframe') as $timeframe)
|
| 417 | 422 |
{
|
| ... | ... |
@@ -426,12 +431,9 @@ class WeinanlieferungSlotAssistantController extends AbstractController |
| 426 | 431 |
$StartDate = new Date($timeframe['date_start'], Date::getNumericDatimFormat()); |
| 427 | 432 |
$EndDate = new Date($timeframe['date_end'], Date::getNumericDatimFormat()); |
| 428 | 433 |
|
| 429 |
- $now = time(); |
|
| 430 |
- $intNewSlots = 0; |
|
| 434 |
+ |
|
| 431 | 435 |
$intStart = $StartDate->tstamp; |
| 432 | 436 |
$intEnd = $EndDate->tstamp; |
| 433 |
- $intBuffer = intval(Input::post('buffer')) * 60;
|
|
| 434 |
- $intDuration = (int) $SlotType->duration*60; |
|
| 435 | 437 |
$arrTimes = []; |
| 436 | 438 |
$arrStartTimes = []; |
| 437 | 439 |
$arrEndTimes = []; |