Interesting results with date()

From: Date: Fri, 11 Oct 2002 17:34:49 +0000
Subject: Interesting results with date()
Groups: php.general 
Request: Send a blank email to php-general+get-119674@lists.php.net to get a copy of this message
Hey all, I am having some interesting, but confusing results when I use date(). What is confusing me is that when I use date with only the first argument, I get some interesting results with the timezone. i.e. <?php echo date("r T"); ?> You would expect to see something like this: Fri, 11 Oct 2002 13:24:53 -0500 Eastern Standard Time But instead everything is off by an hour while still keeping the current timezone: Fri, 11 Oct 2002 13:24:53 -0400 Eastern Standard Time (notice the -0400 instead of -0500) Is there something I can do to fix this problem, a setting in the php.ini file perhaps. The machine that is running the server is set to the proper timezone (-0500 EST). I am running W2K, IIS5 with PHP 4.2.3. Thanks, _________________ / Joshua Minnie \ + +-------------------------------+ | Advantage Computer Services, LLC | | Senior Project Manager | | josh@acsurf.net | | | | Tel : 269.276.9690 | | Fax : 269.342.8750 | +----------------------------------------------------+

« previous php.general (#119674) next »