Re: php's 27/10/2002 problem Important

From: Date: Mon, 16 Sep 2002 14:28:27 +0000
Subject: Re: php's 27/10/2002 problem Important
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-116527@lists.php.net to get a copy of this message
> Op maandag 16 september 2002 15:32, schreef Mahmut Kursun: >> If you are trying to code a sequantial date requiring algorithm you >> will see that for 27/10/2002 you have two timestamps!!!! >> >> And that is a serious bug I think. Any comments! >> >> timestamp : formatted date (d/m/Y) >> 1035666000 : 27/10/2002 >> 1035752400 : 27/10/2002 Bas Jobsen wrote: > I don't see any problem. > Maybe you read out, your data in a wrong way. > Watch out: 1.035.666.000 + (24*60*60) = 1.035.7524.000 24*60*60 is one day...that means that both timestamps cannot have the same date! That's the problem... Only the date from timestamp 1035666000 is not 27/10/2002, but 26/10/2002 23:00:00, while 1035752400 is 27/10/2002 23:00:00...as you can see, just as expected! It seems no bug here...I've tested this on PHP 4.2.2 and PHP 4.2.3 on Windows, SunOS and FreeBSD Grtz Erwin

« previous php.general (#116527) next »