aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2017-12-12 12:00:25 +0100
committermarcinzelent <zelent.marcin@gmail.com>2017-12-12 12:00:25 +0100
commitadddfc4c26f5a20acd44b9f6cab14c6996e54104 (patch)
treea63bf77d74bb476f4e58c9b60f07a00da9cc6eef /src/AppBundle
parente453e45b7f1c0a658b348e419364ee4bd6f452de (diff)
Fixed train schedule.
Diffstat (limited to 'src/AppBundle')
-rw-r--r--src/AppBundle/Controller/TrainScheduleController.php4
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();