[wellylug] php and new Daylight Savings Time

Jethro Carr jethro.carr at jethrocarr.com
Tue Oct 2 09:48:55 NZDT 2007


On Mon, 2007-10-01 at 20:03 +1300, nic wrote:
> Has anyone else hit problems with php's internal timezone magic being broken with the new 
> daylight savings time? I've found this:
> 
> * Machine time is reported correctly. I've even gone as far as rebooting it.
> 
> * zdump -v Pacific/Auckland shows the correct daylight savings time.
> 
> * I've downloaded, compiled, installed the newest php timezonedb.
> 
> * Timezone reported by phpinfo() set to Pacific/Auckland.
> 
> BUT:
> time as reported by strftime('%Y-%m-%d %H:%M:%S') is 1 hour behind real time.
> 
> Any insights?

PHP 4.3.9 (version distributed with RHEL/CentOS 4) works fine.


-- 
Jethro Carr

www.jethrocarr.com
www.jethrocarr.com/index.php?cms=blog

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20071002/fdc30ba2/attachment.pgp 


More information about the wellylug mailing list