I have the following date in mysql stored in DATETIME field:
2012-04-16 16:21:54
Than I select it like this:
SELECT UNIX_TIMESTAMP(date) ....
but if I print the hour using php date function I get one hour difference:
echo date("H:i:s", $row->date)
would print:
17:21:54
Without the second parameter, the date function returns correct value. Any ideas?
date()function will convert the date to the server time before displaying it. The one hour difference could be the expected result.