diff options
| author | marcinzelent <zelent.marcin@gmail.com> | 2017-12-12 12:00:25 +0100 | 
|---|---|---|
| committer | marcinzelent <zelent.marcin@gmail.com> | 2017-12-12 12:00:25 +0100 | 
| commit | adddfc4c26f5a20acd44b9f6cab14c6996e54104 (patch) | |
| tree | a63bf77d74bb476f4e58c9b60f07a00da9cc6eef /src | |
| parent | e453e45b7f1c0a658b348e419364ee4bd6f452de (diff) | |
Fixed train schedule.
Diffstat (limited to 'src')
| -rw-r--r-- | src/AppBundle/Controller/TrainScheduleController.php | 4 | 
1 files changed, 3 insertions, 1 deletions
| 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(); |