date function problem...

From: Date: Mon, 07 Jul 2003 15:06:42 +0000
Subject: date function problem...
Groups: php.windows 
Request: Send a blank email to php-windows+get-20720@lists.php.net to get a copy of this message
I'm having a bit of an issue using the date function... it isn't cooperating with any dates before... sometime in 1970. I guess this is date 0 for unix, if I'm not mistaken. However, dates before this time are throwing an error at me: Warning: unexpected error in date() in D:\wwwroot\vvf\oshawa\articles.php on line 110 Not terribly informative, but here is the code that produces that error: list($yr,$mo,$dy)=explode("-",$art[article_date]); $date = date("Y F d", mktime(0,0,0,$mo,$dy,$yr)); This works perfectly for everything else... I have pages of database-returned dates, and when an older article comes up, that's the error I get right at the top of the list. Is there any easy workaround for the date function? Thanks, Marc

« previous php.windows (#20720) next »