Hi there,
I've run into a strange behaviour with daylight saving on an Ubuntu
feisty server:
consider the following program date.php:
<?php
date_default_timezone_set ( 'Pacific/Auckland' );
echo date('r');
?>
Here is the command line output (feisty):
s...@weather:~$ date
Sat Oct 3 20:42:34 NZDT 2009
s...@weather:~$ php -f date.php
Sat, 03 Oct 2009 19:42:46 +1200
The same program on my Ubuntu Jaunty:
s...@pluto:~$ date
Sat Oct 3 20:45:25 NZDT 2009
s...@pluto:~$ php -f date.php
Sat, 03 Oct 2009 20:45:32 +1300
I copied the Pacific/Auckland timezone data file from Jaunty to the
Feisty system, but no change. Both systems do not have a default
timezone set in php.ini and the behaviour does not change whether I call
date_default_timezone() in the script or not.
I'm puzzled. Any pointer much apprechiated.
Cheers
Stefan
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---