How can i change Default timezone?

How can i change Default timezone?
Timestamp in database is not what i expect.

@costin said:
How can i change Default timezone?
Timestamp in database is not what i expect.

I think this is NOT POSSIBLE because it requires Root/SSH acess which is disabled on Free Hosting.

Refrence :
https://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html

https://www.interserver.net/tips/kb/change-mysql-server-time-zone/

Thank you

If you are using PHP you can change the PHP timezone using:

date_default_timezone_set('TIMEZONECODE');

The PHP timezone code’s can be found at PHP: List of Supported Timezones - Manual

In cPanel you can change it if you go to alter php config.

1 Like