From adddfc4c26f5a20acd44b9f6cab14c6996e54104 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Tue, 12 Dec 2017 12:00:25 +0100 Subject: Fixed train schedule. --- src/AppBundle/Controller/TrainScheduleController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AppBundle/Controller/TrainScheduleController.php b/src/AppBundle/Controller/TrainScheduleController.php index d3a936c..d22bbe4 100644 --- a/src/AppBundle/Controller/TrainScheduleController.php +++ b/src/AppBundle/Controller/TrainScheduleController.php @@ -20,7 +20,9 @@ class TrainScheduleController extends Controller public function GetSchedule() { - $url = "http://xmlopen.rejseplanen.dk/bin/rest.exe/multiDepartureBoard?id1=008600617&date=08.12.17&time=00%3A00&useBus=0&format=json"; + $url = "http://xmlopen.rejseplanen.dk/bin/rest.exe/multiDepartureBoard?id1=008600617&date=" . + date("d.m.Y") . + "&time=00%3A00&useBus=0&format=json"; // Get cURL resource $curl = curl_init(); -- cgit v1.2.3