This has been asked before, but not the answer I'm looking for. I save all my dates in MYSQL in UTC / GMT. When I retrieve data for a user that refers to time, it is 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 run normal queries?
SET time_zone = usertimezone;
And if I use the second one, I just do it once for each user session, or if I do not use a constant open, do I need to install it before each request?
source share