- Normalizes time difference between WP and database

This commit is contained in:
Vlad
2016-03-22 12:42:23 -04:00
parent 7331e5cabd
commit 26c5cc1e43
2 changed files with 13 additions and 1 deletions

View File

@ -65,7 +65,8 @@ class Initializer {
\ORM::configure('driver_options', array(
\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
\PDO::MYSQL_ATTR_INIT_COMMAND => 'SET TIME_ZONE = "+00:00"'
\PDO::MYSQL_ATTR_INIT_COMMAND =>
'SET TIME_ZONE = "' . Env::$db_timezone_offset. '"'
));
$subscribers = Env::$db_prefix . 'subscribers';