I am trying to compare two Unix TimeStamps, one current date and one future date to see the time left, but I get a date from 1970.
<?php
//Current Server Time in Unix TimeStamp
$today = date(U);
echo "Current Server Time ".$today;
echo "<br />";
//February 10, 2011, 12:00 am in Unix TimeStamp
$target = (1297296000) ;
echo $target;
echo "<br />";
//echo date('F j, Y, g:i a',$target);
//echo "<br />";
//Compare both timestamps
$difference =($target-$today) ;
echo $difference;
echo "<br />";
//Covert time into more readable format
echo date('F j, Y, g:i a',$difference);
?>