How can I use the SELECT Now() As CurrentDateTime for GMT, as it displays the tome as GMT-5.
Basically, when the time is: 2011-11-19 09:46:37 in GMT, it displays it as: `2011-11-19 04:46:37
How can I set this for GMT.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way is by setting the time zone for your session:
MySQL “time zone support” documentation.
There’s also CONVERT_TZ, which is explained here: MySQL default time format UTC or GMT?