Re: time problem

From: Date: Tue, 04 Jul 2000 21:32:31 +0000
Subject: Re: time problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4821@lists.php.net to get a copy of this message
> Can anybody could explain to me why date("Y-m-d H:i:s",0) returns > > 1970-01-01 01:00:00 > > instead of > > 1970-01-01 00:00:00 ? Time 0 is 1970-01-01 00:00:00 GMT Poland is probably GMT+1, hence the 1 hour difference. > And another strange example: > > <? > $date = 28800; //8 hours > since epoch > echo "idpv:".date("Y-m-d h:i:s",$date)."<br>"; //shows > 1970-01-01 > 09:00:00 ?????????????? Once again, 28800 is 8 hours past Unix Epoch GMT, not your local time. -Rasmus

« previous php.general (#4821) next »