adamriley Posted May 10, 2010 Share Posted May 10, 2010 date_default_timezone_set(date_default_timezone_get('Europe/London')); Whats wrong with this Link to comment https://forums.phpfreaks.com/topic/201286-timezone/ Share on other sites More sharing options...
kenrbnsn Posted May 10, 2010 Share Posted May 10, 2010 Please explain your problem better. Error messages? More code? Ken Link to comment https://forums.phpfreaks.com/topic/201286-timezone/#findComment-1056059 Share on other sites More sharing options...
teamatomic Posted May 10, 2010 Share Posted May 10, 2010 date_default_timezone_get() will return the timezone the script is using no matter what you feed the function. date_timezone_default_set()will set the timezone to use whatever the function specifies. Soto set the timezone you should use: date_default_timezone_set('Europe/London') HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/201286-timezone/#findComment-1056110 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.