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 https://forums.phpfreaks.com/topic/302471-output-local-timezone-convert-query-to-mysqli/ 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 https://forums.phpfreaks.com/topic/302471-output-local-timezone-convert-query-to-mysqli/#findComment-1538970 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.