LeighRogers
03-27-2007, 06:37 AM
Afternoon all :-)
I've built a function that records what is downloaded, and by who'm on my website. The last thing that is left is to record the date.
I have it recording fine & I calculate the date using
$date = date("Y-m-d G:i:s");
however, the time returned is 1hour ahead of me (assuming thats because of the locality settings on my service provider) How can I adjust the value returned by
$date = date("Y-m-d G:i:s");
To take this into account or alternatively amend it after its returned and just before i submit it to the database?
Many thanks in advance.
Leigh
I've built a function that records what is downloaded, and by who'm on my website. The last thing that is left is to record the date.
I have it recording fine & I calculate the date using
$date = date("Y-m-d G:i:s");
however, the time returned is 1hour ahead of me (assuming thats because of the locality settings on my service provider) How can I adjust the value returned by
$date = date("Y-m-d G:i:s");
To take this into account or alternatively amend it after its returned and just before i submit it to the database?
Many thanks in advance.
Leigh