This question already has an answer here:
want to format a timestamp, that i got from my database. TS: 2017-07-07 17:00:37
and get 1.Jan 1970 after that format date('d.M Y', $last_record['recorddate'])
in addition, i am getting that error to the result: A non well formed numeric value
so no idea, why date is travelling back to time where timestamp starts...
</div>