Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question