Hello,
I need MySQL to run different timezones than the system depending on the location of the user. that's why I can't change MySQL's global time but I can set each user's MySQL-session time at the beginning of the script like that:
(1.)
SET time_zone = 'Europe/Helsinki'
Now here comes the crazyness: After I've done that this is what happens in the script:
(2.)
SELECT NOW()
//outputs the user's correct "timezone" time 🙂
(3.)
UPDATE ...
SET logindate = NOW()
WHERE ...
//instead of the user's correct "timezone" puts the system time!!! in the db cell! 🙁
(4.)
SELECT NOW()
//outputs the user's correct "timezone" time again :o
How can I get UPDATE's NOW() to put the correct "timezone" time in the db cell???