This question already has an answer here:
In my database, registration_time is set to current_timestamp
. But it is 7 hours early. How can I correct it?
</div>
This question already has an answer here:
In my database, registration_time is set to current_timestamp
. But it is 7 hours early. How can I correct it?
</div>
you actual mysql time is different then you php
to check
The current values of the global and client-specific time zones can be retrieved like this:
mysql> SELECT @@global.time_zone, @@session.time_zone;
To set it for the current session, do:
SET time_zone = timezonename;
Also you can find detail about timezone set at this link