I have a unix timestamp stored in mysql of:
1438919940
which when I convert it at http://www.onlineconversion.com/unix_time.htm it displays as
Fri, 07 Aug 2015 03:59:00 GMT // this is how I want to display it
In my code I am displaying it using:
$published = $row['update_date']; //this is where 1438919940 comes from
$published = date ('jS F y @ g:ia',$published);
echo $published;
but this displays as
7th August 15 @ 3:59am
The original strtotime I did was a PDT time and my server is set to Europe/London and in my script I have
date_default_timezone_set('Europe/London');
How are the online conversion site echoing that to the 'correct' (how I want it) version and I'm getting a date in the future!!