Date


Next fronters (edit)

Fronters today
Fronters tomorrow
Fronters on

Next events

parseFile($_SERVER['DOCUMENT_ROOT'] . "/includes/data/calendar/calendar.ics"); $events = []; foreach ($cal->getEvents()->sorted() as $event) { $events[] = [ "id" => $event['UID'], "date" => [ "created" => $event['CREATED']->format('c'), "modified" => $event['LAST-MODIFIED']->format('c'), "start" => $event['DTSTART']->format('c'), "end" => $event['DTEND']->format('c'), "duration" => strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c')), "full_day" => strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c')) >= 86400, "days" => ( strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c')) >= 86400 ? round((strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c'))) / 86400) : null ) ], "name" => $event['SUMMARY'], "description" => $event['DESCRIPTION'] ?? "", ]; } $events = array_values(array_filter($events, function ($i) { return ( strtotime($i["date"]["end"]) > time() && strtotime($i["date"]["start"]) < time() + 2629800 ); })); ?>