NYCPHP Meetup

NYPHP.org

[nycphp-talk] New Daylight Savings Time in U.S. Coming Up Very Soon

Dan Cech dcech at phpwerx.net
Tue Feb 27 11:59:18 EST 2007


Dan Cech wrote:
> I must confess to not keeping up with the latest wranglings in php5.x,
> but as far as I am aware php4.x draws its timezone information from the
> operating system and my testing indicates that it is 100% correct on
> both my windows XP machine and linux (debian stable) server.

As an addendum, here is the test I used:

<?php
echo date('r',1173596399)."\n";
echo date('r',1173596400)."\n";

result:

Sun, 11 Mar 2007 01:59:59 -0500
Sun, 11 Mar 2007 03:00:00 -0400

Exactly the same output on both winxp and debian

Dan



More information about the talk mailing list