date not correct

From: Date: Thu, 13 Jan 2000 14:13:20 +0000
Subject: date not correct
Groups: php.version4 
Request: Send a blank email to php-version4+get-9100@lists.php.net to get a copy of this message
Hi, I'm using CVS version and I have this piece of script: $query2 = "select count(*) from sito where "; $query2 .= " data_inserimento between "; $query2 .= "'"; $query2 .= date("d-m-Y",mktime(0,0,0, date("m"),date("d")-5,date("y"))); $query2 .="' AND"; $query2 .= "'".date("d-m-Y",mktime(0,0,0,date("m"),date("d"),date("y")))."'"; I want to know why it return me that $query2 is: select count(*) from sito where data_inserimento between '01-01-1970' AND'01-01-1970' On my system date is correct and hwclock idem. tnx Saluti al mondo intero, ed anche a quello parzialmente scremato. -- Michel <ZioBudda> Morelli michel@enter.it http://www.ziobudda.net Italian Linux FAQ http://faq.ziobudda.net/ Italian Linux Press http://www.ziobudda.net/ILP/

« previous php.version4 (#9100) next »