Analysis of Datetimezone setting in TimeZone Phpini

Source: Internet
Author: User
Although it is known that this parameter means "People's Republic of China", but the official document does not have such parameters, only Asia/shanghai, Asia/hong_kong and so on these parameters ah, why here can be set to RPC, which is the point of pointing, this parameter is where? In the official documentation it seems that there is no such argument. are generally set to Asia/shanghai
Using XAMPP time soon, today in order to correct the PHP fetch function is to get the server time.
Because php5.1.0 started, php.ini added date.timezone this option, which is off by default. The time shown is Greenwich Mean Time, which is 8 hours from Beijing.
Ways to find it online:
Modify the php.ini file to find the;d Ate.timezone =, remove the preceding semicolon and add the time zone after "=".
For example: Asia/chongqing (Chongqing), Asia/shanghai (Shanghai), Asia/urumqi (Urumqi), Asia/macao (Macau), Asia/hong_kong (Hong Kong), Asia/taipei (Taipei), PRC
Cases
;d Ate.timezone =
Change to:
Date.timezone = Asia/shanghai
The method is simple. But under the XAMPP, it is useless to change the Php/php.ini file. Later on-line search found, damn xampp, put php.ini under Apache/bin, modify the inside of the php.ini only use.

The above describes the timezone Phpini in the Datetimezone setup analysis, including the timezone aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.