I have a website that logs the date of an article posted as a timestamp and converts it to full date. Testing this on localhost works fine but on the live version it displays the date as:
31st December 1969
Here is the code that I'm using:
$article_added = $article["added"];
$article_added = date('l jS F Y', strtotime($article_added));
$article["added"]$article["added"]comes from the database and it has value0(orNULLor empty) in the live environment?1391610991, which I've tested on a unix converter toostrtotimeon it?