takn25 Posted April 7, 2011 Share Posted April 7, 2011 Hi, I just realised that date() function depends on where ever your hosting company is from. Is there any way to change this manually as I am from UK and the day changes early compared to where my hosting company is (USA). The reason I want to know this because I have some functions where the user should only be allowed to choose the current date which I want to be according to GMT time. Any help is much appreciated thanks in advance! Link to comment https://forums.phpfreaks.com/topic/232935-date-on-host/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 7, 2011 Share Posted April 7, 2011 Either use gmdate or set the date.timezone setting (see the date_default_timezone_set function) to be the time zone you want. Link to comment https://forums.phpfreaks.com/topic/232935-date-on-host/#findComment-1198057 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.