Update PHP timezone database

Asked by:
Jellybean / 13 Points
Time:
2015-02-19 3:25 am EST
Category:
General Server Setup
Hits:
325
Would it be possible to update the PECL timezonedb used by PHP? America/Cancun switched to a new timezone and PHP is returning wrong information in reference to this timezone.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

arnelc
Staff
17,314 Points
2015-02-19 3:52 am EST
Hello Jellybean,

Thanks for the question about changing the PECL timezone. You will not be able to change the SERVER setting, but you can change the PHP.INI setting that is part of your website. Please see How to set the timezone for php in your php.ini file. This will give you the information that you need to set your proper timezone.

I hope this helps to answer your question, please let us know if you require any further assistance.

Regards,
Arnel C.

To submit a comment on this answer, please first login.

Thanks for your answer. I am however not interested in changing my own timezone. I would like webhosting hub to update the timezone database of PHP because there is wrong timezone information in the current one.
Jellybean
13 Points

2015-02-21 4:39 pm EST
Hello Jellybean,

I checked the server and the timezone on the server is set to PST, which is the timezone of the server's location. That will always be the timezone on the server. Any account that wishes to display differently will need to modify that within their own account with the php.ii or within the program they are using.

Kindest Regards,
Scott M
ScottM
16,266 Points
Staff
2015-02-23 11:56 pm EST
I have attempted to modify the php.ini and the .htaccess file on the server. Neither of the two had any affect at all on the timezone. I'm not sure what the issue is but I can't change the timezone no matter what I try.
TheOnlyJP
3 Points

2016-07-05 12:04 am EST
I suggest reaching out to the support department so they can update the timezone for you.
timothy_sisson
361 Points

2016-07-05 1:52 pm EST
Want to share this Question?
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}