I am using strtotime in PHP, and getting two different result from the same input. I cannot work out why.
$startDate = 1468467219;
$oldDate = date('d/m/Y', strtotime($startDate));
$newDate = date('d/m/Y', strtotime('+3 weekdays', $startDate));
The original date is 14/07/2016 01.33 PM
$newDate
is returning 19/07/2016
As expected.
$oldDate
is returning 01/01/1970
Not the expected result - should be 14/07/2016
.
I have tried other functions inside strtotime and they all produce the correct result. What am I missing? Why can I not simply just pass 1468467219
to strtotime without modifying it?