I've been using string to time in my website to format the date stamps held in a database and up until now the method I'm using has been fine up to this point. Here is the code:
$memberdate = $member['date'];
$memberdate = date('jS F Y', strtotime($memberdate));
The initial $membersate value is 1381742596 - The output value is 1st January 1970
Does anyone know a reason why this would be working for all other pages/scripts but not now?
var_dump($member['date']);