fix sample
This commit is contained in:
parent
13353cc4a5
commit
34cc535314
1 changed files with 1 additions and 4 deletions
|
@ -9,9 +9,6 @@ use kekskurse\mobilizon\Mobilizon;
|
||||||
use kekskurse\mobilizon\MobilizonAddress;
|
use kekskurse\mobilizon\MobilizonAddress;
|
||||||
use kekskurse\mobilizon\MobilizonEvent;
|
use kekskurse\mobilizon\MobilizonEvent;
|
||||||
|
|
||||||
$token = "overwrite in config.php";
|
|
||||||
include("config.php");
|
|
||||||
|
|
||||||
$client = new Client([
|
$client = new Client([
|
||||||
"base_uri" => "https://events.gutes.team",
|
"base_uri" => "https://events.gutes.team",
|
||||||
'timeout' => 2.0,
|
'timeout' => 2.0,
|
||||||
|
@ -23,7 +20,7 @@ $client = new Client([
|
||||||
//Calculate the next 3 Events for OpenSpace
|
//Calculate the next 3 Events for OpenSpace
|
||||||
$date = new DateTime('next tuesday');
|
$date = new DateTime('next tuesday');
|
||||||
$dateList = [$date];
|
$dateList = [$date];
|
||||||
for($i = 1; $i < 1; $i++) {
|
for($i = 1; $i < 4; $i++) {
|
||||||
$newDate = clone end($dateList);
|
$newDate = clone end($dateList);
|
||||||
$newDate->modify('+7 days');
|
$newDate->modify('+7 days');
|
||||||
$dateList[] = $newDate;
|
$dateList[] = $newDate;
|
||||||
|
|
Loading…
Reference in a new issue