What time zone do MySQL TIMESTAMP ON UPDATE columns use?

Does it use the server time zone or UNIX_TIMESTAMP (UTC)?

And how do I get the current time in PHP, in the same time zone as the MySQL TIMESTAMP columns?

+3
source share
1 answer

Depends on your MySQL configuration variables, see MySQL Server Time Zone Support .

+4
source

Source: https://habr.com/ru/post/1730677/


All Articles