Re: Bug #1896 Updated: date('t',..) function does not return 29 as last day for Feb 2000

From: Date: Wed, 28 Jul 1999 11:24:24 +0000
Subject: Re: Bug #1896 Updated: date('t',..) function does not return 29 as last day for Feb 2000
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-9258@lists.php.net to get a copy of this message
I am sorry, it is not a matter of boxes, it is version control... We have installed PHP v. 3.0.9, the datetime.c is version 1.53 and does contain the bug. The 't' parameter has been fixed in version 1.54 and the 'L' in v.1.56, according to the CVS: adding 1900 back to the year (mktime subtracts 1900) Sorry for not checking the CVS first. Atanas Bug Database wrote: > ID: 1896 > Updated by: rasmus > Reported By: atanas@intransco.com > Status: Open > Bug Type: Misbehaving function > Assigned To: > Comments: > > It certainly does on my Linux box: > eg. > echo date ('t', mktime(1,1,1,2,29,2000)); > This prints 29 for me. It doesn't on your box? > > Full Bug description available at: http://bugs.php.net/?id=1896

« previous php.dev (#9258) next »