Re: date() on two diff. servers

From: Date: Mon, 09 Dec 2002 02:55:13 +0000
Subject: Re: date() on two diff. servers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127464@lists.php.net to get a copy of this message
on 09/12/02 1:30 PM, @ Edwin (copperwalls@hotmail.com) wrote: >> Daylight Savings Time? > > John, I think "Daylight Saving Time" creates a difference of 1 hour and not > 1 day :) True... but I checked it anyway -- by adding just one and two hours to the stamp... which made no difference... but when I added 86400 to the stamp, it all worked. > Justin, it depends how you got your "timestamp" in the first place, I > think... > > I could be wrong again here but aren't these different? > > mktime() > gmmktime() Actually, they were created with strtotime(). Note, I don't believe there's anything wrong with the stamp itself. The point is, the stamp is displaying as two different dates using date() on two different servers, and I believe this is not what date() is supposed to do. Shouldn't the stamp for 12-09-2002 22:13:09 be the same on every server? My rationale for this is that no matter where you are in the world, it is always a certain number of seconds since 01-01-1970 00:00:00. Perhaps strtotime() is NOT running off GMT, and perhaps date() is... there has to be SOME confusion there -- either on my side, or in my choice of functions, or SOMETHING :) Justin French -------------------- http://Indent.com.au Web Development & Graphic Design --------------------

« previous php.general (#127464) next »