Daylight savings and timestamps

From: Date: Fri, 26 Oct 2001 20:52:15 +0000
Subject: Daylight savings and timestamps
Groups: php.general 
Request: Send a blank email to php-general+get-72499@lists.php.net to get a copy of this message
Hello fellow PHPer's, Daylight savings is soon upon most of us and I have some questions in regard to timestamps. My problem: So we put our clocks an hour back. I have database tables with plain integers that store timestamps. I like to do comparison operations with these timestamps. When daylight savings takes effect the pre-daylight savings timestamps are an hour ahead of the daylight saving timestamps and cause time operations to calculate incorrectly. What is the solution? Could I offset the new timestamps to ignore daylight savings, make all my timestamps none-daylight savings timestamps?

« previous php.general (#72499) next »