This has been asked before but not the answer I am looking for. I am storing all my dates in MYSQL in UTC/GMT. When I extract data fora user that references time is it better to use the CONVERT_TZ construct...
SELECT CONVERT_TZ(mytime,'UTC',usertimezone) as mytime FROM table
or is it better to temporarily set the session zone in Mysql and then do normal queries?
SET time_zone = usertimezone;
And if I use the second, do I just do that once for each user session or if I am not using a persistent open, do I need to set it before each query?