Hello!
I would like to set my own timezone to MySQL database connection, because timezone of MySQL server is different from timezone of PHP and my application clients.
I try to use PDO driver instead of mysqli, and set dsn like this:
$this->load->database('mysql://root:@localhost/my_db_name?timezone=0:00');
But it's not work. It's retrieve date from TIMESTAMP field type using mysql server(hosting) timezone.
I saw the mysql query log, and there is no query to set timezone session timezone like this : "SET timezone = +0:00;"
I expected to set some $db['options'] setting value in config/database.php file, but there is no one.
How can I setup the MySQL connection timezone without core modification? And what kind of driver should I use: "mysqli" or "pdo"?
Thank you!