|author||avm99963 <firstname.lastname@example.org>||Sun Jul 05 13:49:26 2020 +0200|
|committer||avm99963 <email@example.com>||Sun Jul 05 13:49:26 2020 +0200|
Make the app independent from the server timezone When getting local time in SQLite, the local time is generated taking into account the timezone set in the server, not in PHP. Therefore, this made it compulsory to set the "Europe/Madrid" timezone for the whole server. This change fixes this by generating local timestamps directly in PHP instead than in SQLite, therefore allowing the server timezone to be set freely without this app malfunctioning. Change-Id: I5345772d9b7a2521c98143a90e4154eaa4cd35f6
Schedule viewer for the Barcelona subway.
PDOclasses (specifically install the
config.phpand fill in the details (you can get an API key directly from TMB here.
$conf["databaseFile"]enter the absolute path of the location where you want to save your database (including the file name). If the website is located in the
/var/www/html/schedules/folder, you can create a new
filesfolder there and set the variable to