Re: syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Micah Gersten wrote:


$query .= " WHERE stamp < ".(time()-7*3600*24);

Using something like that is disastrous for DST and Leap Seconds...

That's why you use UTC for servers and translate to local time when you need to display it.

Not sure that solves the leap second issue, but it certainly solves the DST issue.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux