Tuesday, May 8, 2007

How To Date A Grumman Canoe

problem in PHP

really much information on the web on how to display the time and date in php. But particularly I found a problem and when asked when the server returned to me with one or two hours apart.

some research solved this problem by setting the timezone to the region where I belong and now to recall the time I write the following code.
date_default_timezone_set ("America / Guatemala");
echo date ("H: i: s");
If you belong to another area because just substitute America / Guatemala for yours. Then I leave the address to see elsewhere.

0 comments:

Post a Comment