adamjones Posted September 18, 2009 Share Posted September 18, 2009 Hi, Just wondering how to make this into London, UK time? Currently it displays it as 6pm, not 11pm! $datetime = date("F j, Y, g:i a"); Thanks! Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 18, 2009 Share Posted September 18, 2009 <?php ini_set('date.timezone', 'Europe/London'); $datetime = date("F j, Y, g:i a"); echo $datetime; ?> Quote Link to comment Share on other sites More sharing options...
zq29 Posted September 18, 2009 Share Posted September 18, 2009 Alternatively.... http://uk.php.net/manual/en/function.date-default-timezone-set.php Quote Link to comment Share on other sites More sharing options...
adamjones Posted September 18, 2009 Author Share Posted September 18, 2009 Thankyou both 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.