So I am pulling a timestamp from a mysql database and was wondering why none of the timechecks are working.
echo "The time is " . date("Y-m-d h:i:s");
echo "</br>";
echo "Mysql Timestamp " . $row["Uptime"];
echo "</br>";
echo "Mysql Timestamp as strtotime" .strtotime($row["Uptime"]);
echo "</br>";
echo "strtotime Current Time". strtotime("now");
echo "</br>";
the output:
The time is 2018-08-18 12:42:55 Mysql Timestamp 2018-08-18 12:42:52 Mysql Timestamp as strtotime1534596172 strtotime Current Time1534552975
There is about a 4000 difference between the numbers after converting to string. What's going on and how do I fix this without doing x-4000?