#15466 [Com]: fucntion date returns same date with to different timestamps with 86400 sec dif

From: Date: Tue, 01 Jul 2003 19:56:11 +0000
Subject: #15466 [Com]: fucntion date returns same date with to different timestamps with 86400 sec dif
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43023@lists.php.net to get a copy of this message
ID: 15466 Comment by: dongiobenve at tin dot it Reported By: Webmaster at cdmw dot de Status: Bogus Bug Type: Date/time related Operating System: Windows95 PHP Version: 4.0.6 New Comment: Ok, but: echo date("Y-m-d g:i:s I", 1067205600)."<p>"; echo date("Y-m-d g:i:s I", 1067205600 + 86400)."<p>"; return this output: 2001-10-28 12:00:01 2001-10-28 11:00:01 It's wrong! Previous Comments: ------------------------------------------------------------------------ [2002-02-09 10:59:51] derick@php.net October 28th has 25 hours. Derick ------------------------------------------------------------------------ [2002-02-09 10:57:17] Webmaster at cdmw dot de Hi all, look to this: print date("Y-m-d",1004220001)."<br>"; print date("Y-m-d",1004306401); Both will return "2001-10-28" but there are 86400 seconds (one day) difference. Hope i could help... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15466&edit=1

« previous php.bugs (#43023) next »