I am trying to convert a unix timestamp into a local time using mysql.
The statement I am trying is:
SELECT CONVERT_TZ('FROM_UNIXTIME(table1.timestamp)', 'GMT', 'MET' ),table1.COL2,table1.COL3 WHERE table1ID ='3'
It returns NULL
.
I would prefer to do this directly in mysql rather than manipulating the output later using php to keep other parts of my code simple.
Thanks in advance for any help.