Re: PHP and daylight savings
| From: | Bruce Cowin | Date: | Mon, 01 Oct 2007 00:08:03 +0000 |
| Subject: | Re: PHP and daylight savings | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-262602@lists.php.net to get a copy of this message | ||
Yet another update! I managed to get rid of the CGI error by turning off error logging to the
syslog. But now I get this message:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_timezonedb.dll' -
Access is denied. in Unknown on line 0
As I say, this same dll works fine on a server running the same PHP version (5.1.2). Any ideas?
Regards,
Bruce
>>> "Bruce Cowin" <bdc@topenergy.co.nz> 1/10/2007 12:13 p.m. >>>
I discovered that we needed to update the php_timezonedb.dll. This worked fine on our servers and
time is now correct. But in my dev environment on my machine, when I put the same dll in (with the
same version of PHP), I get a CGI error when PHP tries to do anything. Anyone know why?
Regards,
Bruce
>>> "Bruce Cowin" <bdc@topenergy.co.nz> 1/10/2007 11:02 a.m. >>>
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php