Changing server time
Posted: Wed Oct 19, 2005 5:13 pm
Hi, I've studied the date() function page on php.net, and searched for a solution, but to no avail, although I reckon there's an easy answer to this question:
How do I subtract 2 hours from the following date timestamp?
$day = date("d ");
$year = date(" Y, H:i:s");
return $month.$day.$year;
The MySQL field is set to a timestamp of NOW(). The server is running PHP4.x so the new PHP 5 function for setting a certain timezone is not possible.
Thanks in advance!
How do I subtract 2 hours from the following date timestamp?
$day = date("d ");
$year = date(" Y, H:i:s");
return $month.$day.$year;
The MySQL field is set to a timestamp of NOW(). The server is running PHP4.x so the new PHP 5 function for setting a certain timezone is not possible.
Thanks in advance!