energylevel Posted November 5, 2016 Share Posted November 5, 2016 This snippet of code outputs stored date to UK local time with daylight saving, trying to convert it to MySQLi ? date_default_timezone_set(‘Europe/London’); mysql_query(“SET `time_zone` = ‘”.date(‘P’).”‘”); Quote Link to comment Share on other sites More sharing options...
Barand Posted November 5, 2016 Share Posted November 5, 2016 $mysqli->query("SET ...") where $mysqli is the mysqli connection object. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.