diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-01-06 15:14:52 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-01-06 15:14:52 +0000 |
| commit | 40d1c6147bc7f80f7688bd958e612ae8db6a5fd0 (patch) | |
| tree | 2b9001836ba0c7b83b497b3e97d88baedc8f168e /index.php | |
| parent | 9dc7e9e3591406f239cf15f0cdb58517a816694f (diff) | |
| download | webtrees-40d1c6147bc7f80f7688bd958e612ae8db6a5fd0.tar.gz webtrees-40d1c6147bc7f80f7688bd958e612ae8db6a5fd0.tar.bz2 webtrees-40d1c6147bc7f80f7688bd958e612ae8db6a5fd0.zip | |
Use illuminate/database
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -38,6 +38,7 @@ use Fisharebest\Webtrees\Tree; use Fisharebest\Webtrees\User; use Fisharebest\Webtrees\View; use Fisharebest\Webtrees\Webtrees; +use Illuminate\Database\Capsule\Manager as DB; use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; use Symfony\Component\HttpFoundation\Request; @@ -146,7 +147,7 @@ if ($max_execution_time !== '' && strpos(ini_get('disable_functions'), 'set_time Session::start(); // Note that the database/webservers may not be synchronised, so use DB time throughout. -define('WT_TIMESTAMP', (int) Database::prepare("SELECT UNIX_TIMESTAMP()")->fetchOne()); +define('WT_TIMESTAMP', DB::select('SELECT UNIX_TIMESTAMP() AS unix_timestamp')[0]->unix_timestamp); // Users get their own time-zone. Visitors get the site time-zone. try { |
