Bug #13888: Date + October

From: Date: Wed, 31 Oct 2001 16:57:25 +0000
Subject: Bug #13888: Date + October
Groups: php.dev 
Request: Send a blank email to php-dev+get-69422@lists.php.net to get a copy of this message
From: pmartinez@distridasa.com Operating system: Red Hat 6.2 PHP version: 4.0.4pl1 PHP Bug Type: Date/time related Bug description: Date + October I have a problem with date() function; In my PC, Today is 31-October-2001. I would like to obtain precedent month and next month with this clause: $month_before = date('m', mktime(0,0,0,date("m")-1,date("d"),date("Y"))); $month_next = date('m', mktime(0,0,0,date("m")+1,date("d"),date("Y"))); Surprisingly, I get this result: $month_before is equal to 10 $month_next is equal to 12 This error just ocurrs this day "31-10-2001". Another day is ok. I don't understand it !!! Can anyone help me ?? -- Edit bug report at: http://bugs.php.net/?id=13888&edit=1

« previous php.dev (#69422) next »