Re: Time Wrong
| From: | Nathan Rixham | Date: | Wed, 21 Jan 2009 22:17:40 +0000 |
| Subject: | Re: Time Wrong | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286960@lists.php.net to get a copy of this message | ||
Edmund Hertle wrote:
2009/1/21 Gary <gwpaul@ptd.net>makes sense.. check out http://php.net/date_default_timezone_set - probaly needs setIm pretty new with php, so this might be a pretty novice mistake, but the time displays wrong on two computers. <?php echo date('l F jS, o h i A');?> Shows up 2 hours late...time on both computers is correct. ThanksDo you mean on two computers visiting a php script? PHP is running on the server, so it will use server time -eddy