S
S
Sergey Suntsev2017-01-30 11:16:55
MySQL
Sergey Suntsev, 2017-01-30 11:16:55

How is datetime formed in mysql (mariaDB)?

I'm using the datetime data type, but when I create the field, the current time is several hours behind. Apparently it's a matter of time zones. It is interesting to know whether it is possible to set the time settings in mysql, or do I need to write a separate php script that would automatically move the time forward?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Orlov, 2017-01-30
@GreyCrew

You can change the time zone, here it is written in detail:
https://dev.mysql.com/doc/refman/5.5/en/time-zone-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question