Gurus! I need your help.
My MySQL database returns a timestamp formatted like so:
echo date('m/d/y, g:ia', 1239752639) . "\
"; // DB
echo 'VS' . "\
echo date('m/d/y, g:ia', time()) . "\
"; // Current.
The above outputs:
As you can see, the DB time is ahead of the local time.
I am sure that I am missing something obvious here, but what is the best way to convert the database timestamp into a local UTC timestamp?
Many thanks in advance!