PHP and daylight savings

From: Date: Sun, 30 Sep 2007 22:02:50 +0000
Subject: PHP and daylight savings
Groups: php.general 
Request: Send a blank email to php-general+get-262600@lists.php.net to get a copy of this message
I'm using PHP 5.1.2 on IIS. Here in New Zealand, our daylight savings started a week earlier than usual and went into affect this past weekend. The time on my machine is correct. The timezone settings on my machine are correct. But if I display the time on a PHP page, it is 1 hour behind. Setting the timezone with date_default_timezone_set() doesn't make any difference. If I display the time on an ASP page, it shows the correct time so it can't be an IIS problem I don't think. Why would PHP be showing the time as if it hadn't changed? Where is it getting the time from? Here is the code I'm using: date_default_timezone_set('Pacific/Auckland'); echo "time is " . date("h:i:s"); Regards, Bruce

« previous php.general (#262600) next »