Timezone Issue
| From: | Andrew Ferguson | Date: | Wed, 29 Jun 2005 18:13:06 +0000 |
| Subject: | Timezone Issue | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26160@lists.php.net to get a copy of this message | ||
I first noticed this problem a few weeks back. When I log into
squirrelmail, the time displayed it eight hours ahead of the actual
time. I restarted my apache server and the problem was fixed. A few hours
later, the time is off again. This repeats, add infinitum.
Here's what's weird. Window's always reports the correct time, Window's
always reports the correct time zone too (-0700 US/Pacific). I run
date("O") and right after I restart apache, it will report -0700.
However, when I check back later it will report +0100. I ran
getenv('TZ') and that always reports US/Pacific. Any thoughts?
I'm running Windows Server 2003, Apache 2.0.53, and PHP 4.3.11.
-Andrew Ferguson