Jump to content

now() [SOLVED]


Tom

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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...