What timezone does MySQL's NOW() follow

前端 未结 3 839
你的背包
你的背包 2020-12-10 12:34

Does MySQL\'s NOW() follow the system\'s timezone or some standard like GMT or UTC?

3条回答
  •  余生分开走
    2020-12-10 13:12

    As far as I know its the system clock is returned. Check for your system's time zone. I you connect MySQL locally (like from PHP) time zones will not matter for MySQL, I prefer handling them in PHP.

提交回复
热议问题