Wrong hour determined by PHP script
I'm new to PHP development so have implemented the code developed by firstname.lastname@example.org
that is referenced at the head of this thread, to use as a seed for my development and education.
I have learned a lot from it, but there is one thing that's driving me nuts. I have e-mailed the developer about it several times, but perhaps my mails are dropping into his spam folder, as I can get no response, so I am hoping someone here can help explain the perceived odd behavior.
It goes like this:
A POSIX timestamp is sent to the server as part of the Backitude upload and is stored in an SQL database. The script that is called when one wants to display the current location information reads the relevant data from the SQL database including this timestamp, and without any other processing decodes it using this line of code: $datum_english = "Last update of the position:<br>".date("l, j. M. Y, H:i:s", $latestupdate).".";
An example of and actual '$latestupdate' value is: 1384980886, which, according to my calculation represents 21/11/2013 @ 20:54:46
What displays in the browser is 21/11/2013 @ 13
:54:46 - seven hours adrift.
I'm just not seeing what is happening here.
Anyhow, just preparing myself for the "doh!, of course" response, so feel free to come back with obvious answer.
Thanks in anticipation. BTW I live in the UK, if that's relevant.