time problem

From: Date: Tue, 04 Jul 2000 13:30:07 +0000
Subject: time problem
Groups: php.general 
Request: Send a blank email to php-general+get-4741@lists.php.net to get a copy of this message
Hi, 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 ? 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 ?????????????? $date += mktime(0,0,0,date("m"),date("d"),date("Y")); echo "idv:".date("Y-m-d h:i:s",$date)."<br>"; shows 2000-07-04 08:00:00 ?>

« previous php.general (#4741) next »