Re: Daylight savings and timestamps

From: Date: Fri, 26 Oct 2001 22:12:47 +0000
Subject: Re: Daylight savings and timestamps
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-72515@lists.php.net to get a copy of this message
Your timestamps should be in UTC, and therefore not effected by daylight savings. - Ben Nathan Cassano wrote:
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 (#72515) next »