I'm in the UK but my server is in the US, so I'm trying to change the mysql timezone on a per connection basis.
I'm testing this with the following code, but it doesn't work. Can someone see what the problem is:
$db_username='xxx';
$db_password='xxx';
$result = mysql_pconnect('localhost', $db_username, $db_password);
mysql_query('SET @@session.time_zone:=Europe/London');
$result = mysql_fetch_array(mysql_query("SELECT @@session.time_zone"));
echo $result['@@session.time_zone'];
The echo I get back is always "SYSTEM"!!