Tom Posted December 13, 2010 Report Share Posted December 13, 2010 Where is this defined? It doesn't seem to be a php function and I want to change it so all the dates recorded are GMT. I've already set the php default timezone to GMT in local.config.php, however this doesn't seem to affect now(); How can I change it? Thanks Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted December 13, 2010 Report Share Posted December 13, 2010 NOW() is a MySql function. You need to change it to UTC_TIMESTAMP()for GMT/Zulu/UTC Quote Link to comment Share on other sites More sharing options...
Tom Posted December 13, 2010 Author Report Share Posted December 13, 2010 Oh right it's MySQL. Thanks, I've changed it to php date any way Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted December 13, 2010 Report Share Posted December 13, 2010 NP Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 14, 2010 Administrators Report Share Posted December 14, 2010 I have this on the list of things to convert into a setting Quote Link to comment Share on other sites More sharing options...
Tom Posted December 14, 2010 Author Report Share Posted December 14, 2010 Oh ok thanks Nabeel! I've probably missed a few instances of it anyway Quote Link to comment Share on other sites More sharing options...
savagegrave Posted December 20, 2010 Report Share Posted December 20, 2010 Hi Guys, Im trying to get the departure board on my site (www.imgvirtual.com) to show the "actual" dep time according to kacars or fsacars... Changing the NOW() function in AcarsData.Class.php to UTC_TIMESTAMP() changed the lastupdated field in the acars table however not the deptime/arrtimes. These are still in EST and not UTC which i would like. I can see the code uses a mix of FROM_UNIXTIME() and time() functions, even placing date_default_timezone_set("UTC"); at the start of the function doesnt seem to change these fields.... any pointers? Quote Link to comment Share on other sites More sharing options...
Tom Posted December 20, 2010 Author Report Share Posted December 20, 2010 Instead of 'NOW()' I've used: '".date('Y-m-d H:i:s')."' And then to set your time zone put the following in local.config.php (applies it to all scripts then): date_default_timezone_set('Europe/London'); Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 20, 2010 Administrators Report Share Posted December 20, 2010 deptime and arrtime are from the ACARS app. I have no indication of what timezone they are in, so you'll have to see how they send it, and adjust for that Quote Link to comment Share on other sites More sharing options...
savagegrave Posted December 22, 2010 Report Share Posted December 22, 2010 ty for your help guys, will have a play over the w/e and see what i can come up with lol 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.