问题
My server is in US, and I'm in istanbul. Problem is I want to ask mysql about current time. Is there a function to adjust it's time accourding to mine?
select * from xyz where dateTimeField<now();
dateTimeField will available after 10 hours that it shoud be!
回答1:
Use command
SET time_zone = timezone;
That sets it to your time zone. Refer to the details.
来源:https://stackoverflow.com/questions/4019102/mysql-default-timezone