Jump to content

Recommended Posts

Posted

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

Guest lorathon
Posted

NOW() is a MySql function. You need to change it to UTC_TIMESTAMP()for GMT/Zulu/UTC

Posted

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?

Posted

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');

  • Administrators
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...