Re: syntax

From: Date: Wed, 25 Feb 2009 03:22:28 +0000
Subject: Re: syntax
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-288772@lists.php.net to get a copy of this message
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.

« previous php.general (#288772) next »