To change the time zone of your hosting, you can follow these steps:
1. Access the cPanel:
- Log in to your cPanel account.
2. Locate the PHP Selector:
- Find and click on "Select PHP Version" or "MultiPHP Manager," depending on the version of cPanel you are using.
.png)
3. Select the PHP Version:
- If you clicked on "Select PHP Version," choose the PHP version in use and click on "Options."
.png)
4. Configure date.timezone:
-
In "Select PHP Version," scroll down until you find the date.timezone option.
-
If you are in "MultiPHP Manager," go to the PHP settings section and look for date.timezone.
5. Set the Time Zone:
- Set the value of date.timezone to the desired time zone. For example, for Recife's time zone, you would set it to America/Recife.
.png)
6.Save the Changes:
- After making the change, make sure to save the settings.
Time Zone Examples
Here are some examples of time zones you can use:
-
America/Recife - Recife
-
America/Sao_Paulo - São Paulo
-
America/New_York - New York
-
Europe/London - London
-
Asia/Tokyo - Tokyo
If you need more details about supported time zones, you can check the list of time zones in PHP.
Verification
To ensure that the change was applied correctly, you can create a simple PHP file that displays the current date and time.
For example:
.png)
When you access this file through your browser, it should show the date and time in the configured time zone.