note 63257 deleted from function.date by derick
| From: | derick@php.net | Date: | Sun, 11 Jun 2006 11:44:34 +0000 |
| Subject: | note 63257 deleted from function.date by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114257@lists.php.net to get a copy of this message | ||
Note Submitter: gabrielmalca at yahoo dot com
----
Sometimes your server has a different date because it is set to a different timezone.
<?
echo date('r');
// Fri, 17 Mar 2006 12:38:30 +0000
?>
If you do not have access to editing the server time, here's a quick fix:
<?
// For example, to output Eastern Standard Time (GMT -5:00)
putenv("TZ=EST");
echo date('r');
// Fri, 17 Mar 2006 07:38:30 -0500
?>