MySQL query for current GMT time

后端 未结 9 1304
你的背包
你的背包 2020-12-24 07:39

This sounds simple enough but I haven\'t been able to figure out how to use a simple SELECT statement to return the current time in GMT.

I have been trying to use CO

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-24 08:17

    This should work - I think you are specified your timezone wrong. Using Chicago as example

    SELECT CONVERT_TZ(NOW(), 'America/Chicago', 'GMT')
    

提交回复
热议问题