Ok, I've fixed whitespace and method name.

Link in query is important, becouse when mysql does not have timezone
data loaded, this will fail and you will know what to do. It will save a
lot of time to everyone -- nobody cares about commit descriptions.


On 2.4.2013 23:36, Jáchym Toušek wrote:
> In Nette/Database/Drivers/MySqlDriver.php:
> 
>> @@ -46,7 +46,12 @@ public function __construct(Nette\Database\Connection $connection, array $option
>>  		if (isset($options['sqlmode'])) {
>>  			$connection->query("SET sql_mode='$options[sqlmode]'");
>>  		}
>> -		$connection->query("SET time_zone='" . date('P') . "'");
>> +
>> +		/* Sync timezone in DB with PHP */
>> +		$connection->exec('SET time_zone = '.$connection->quote(date_default_timezone_get())
>> +			. "\n-- Read this: http://dev.mysql.com/doc/refman/5.5/en/mysql-tzinfo-to-sql.html");
> 
> I don't think the link is needed in code. Maybe in commit description.
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/nette/nette/pull/1018/files#r3627024>.
>