MySQL query for current GMT time

后端 未结 9 1279
你的背包
你的背包 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

    Note: GMT might have DST UTC does not have DST

    SELECT UTC_TIMESTAMP();
    

    I made a cheatsheet here: Should MySQL have its timezone set to UTC?

提交回复
热议问题