Administrators Nabeel Posted March 2, 2010 Administrators Report Posted March 2, 2010 Can you guys make a quick PHP script with this in it, and paste the output here. <?php echo(date_default_timezone_get()); I wonder how many hosts have properly set it up. It seems like I'm running into issues where the time is not being in the right timezone with some data I'm getting back to vaCentral. So I'll have to manually fix this... but I'm wondering if any hosts have this set properly in the first place. I'll manually do it...and I guess GMT is the aviation standard? Quote
sean212 Posted March 2, 2010 Report Posted March 2, 2010 http://double-designs.com/te.php But I reset SimCOA to force America/New York. This is with loading the site. Quote
Moderators mark1million Posted March 2, 2010 Moderators Report Posted March 2, 2010 How strange, this is what i get. System/Localtime My server is set to GMT because i set it, but there is no output above, i think i have locked quite a bit down via apache config and the php.ini... Quote
Administrators Nabeel Posted March 2, 2010 Author Administrators Report Posted March 2, 2010 Thanks Sean. And that's strange Mark, I'll have to see what that means Quote
KenHughes Posted March 4, 2010 Report Posted March 4, 2010 America/Denver Which is where my hosting company is based. Ken Quote
Moderators mark1million Posted March 4, 2010 Moderators Report Posted March 4, 2010 OK so i set the server time to utc but nothing was defined in the php.ini, this is now what i get Europe/London Quote
Moderators mark1million Posted March 4, 2010 Moderators Report Posted March 4, 2010 I know as a quick fix in your website root dir you can create a file called php.ini and in that you can just define what location you wish to set the timezome for that directory. That way you can define different timezones to different websites if you so wish. Done forget to restart apache or iis to make the change. Quote
Administrators Nabeel Posted March 5, 2010 Author Administrators Report Posted March 5, 2010 I know as a quick fix in your website root dir you can create a file called php.ini and in that you can just define what location you wish to set the timezome for that directory. That way you can define different timezones to different websites if you so wish. Done forget to restart apache or iis to make the change. That works on only a few servers. The actual issue is MySQL which I'm now finding out. Quote
Moderators joeri Posted March 5, 2010 Moderators Report Posted March 5, 2010 sorry for the late reply this is what i get Europe/Berlin its the location off the server/correct timezone Quote
Strider Posted March 5, 2010 Report Posted March 5, 2010 UTC for me http://globalaircargovirtual.org/time.php Cheers Dan C Quote
Guest Brian Posted March 5, 2010 Report Posted March 5, 2010 Well no matter what the timezone is, if you need to change it, their is a simple php code you insert into the main php file of your site. Let me know if you need it. Quote
Administrators Nabeel Posted March 6, 2010 Author Administrators Report Posted March 6, 2010 Well no matter what the timezone is, if you need to change it, their is a simple php code you insert into the main php file of your site. Let me know if you need it. Not really, it's not that simple. It depends on safe-mode settings, and if the host allows changes. MySQL settings are also completely different and depend on whether they are set to the SYSTEM, or set to their own individually. Then there are different permission sets for changing the timezone, and whether it's set for the system, or if it has to be set per-session, which could also depend on the settings. Same with PHP. Quote
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.