Hi why can't I set the GLOBAL TIME_ZONE ?
I have a connections script which is called when I do a mysql query. In this script after setting the Host, User, Password I've added this
$timezone='Europe/London';
$link = mysql_connect($hostname, $username, $password);
mysql_query("SET GLOBAL time_zone = $timezone");
Then on the web page after doing a mysql query I have
here in the uk the date is ". date('l, F jS, Y,')." and the time is ".date('g:i a');
But whatever I set $timezone to it never changes from London +2 hours. even though my host is in the states.
Before someone sends it, here is the web link.
http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html
Regards