Re: Problem with Date (2003-03-30)

From: Date: Wed, 29 Jan 2003 18:06:45 +0000
Subject: Re: Problem with Date (2003-03-30)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133540@lists.php.net to get a copy of this message
All parameters whould be integers. Unquote them and use intval to strip the leading zeros. On 1/29/03 11:51, "Gareth Mulholland" <php@eden-interactive.com> wrote: > I'm having problems with mktime and Midnight on 30th March 2003. > > The code I'm using is: > > echo mktime(0,0,1,'03','29','2003'); > echo mktime(0,0,1,'03','30','2003'); > echo mktime(0,0,1,'03','31','2003'); > > but the result is: > > 1048896001 > -3661 > 1049065201 > > Therefore date is giving me 31 Dec 1969. Is this a problem with UNIX or PHP? > > Thanks > Gareth > > > >

« previous php.general (#133540) next »