Jump to content

timezone web server?


Wiranata

Recommended Posts

When MySQL has been started, by default it takes the time zone of the local machine(server).

 

If you are using shared hosting server, you don't have permissions to change a global time zone on the server and the database.

 

By default each client that connects has its own time zone setting, given by the session time_zone variable in MySQL.

 

You can change your own time_zone using the sql SET statement.

 

For example:

 


SET time_zone = 'America/Toronto'

or

SET time_zone = '+07:00'

or

ALTER DATABASE <database_name> SET time_zone = 'America/Toronto'

 

Take a look at here to obtain much more details about this.

Link to comment
https://forums.phpfreaks.com/topic/273256-timezone-web-server/#findComment-1406934
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.