_php Techniques of Date.timezone setting in php.ini
Source: Internet
Author: User
Although I know this parameter means "People's Republic of China", but the official document does not have such parameters, only Asia/shanghai, asia/hong_kong, such as these parameters ah, why this can be set to RPC, who gave directions, this parameter is where? The official document does not seem to see this parameter ah, puzzled. are generally set to Asia/shanghai
Using XAMPP time soon, today to correct the PHP get function is to get the server time.
Because php5.1.0 started, php.ini added the Date.timezone option, which is closed by default. The time shown is Greenwich Mean time, and Beijing is just 8 hours away.
Find the way online:
Modify the php.ini file, look for;d Ate.timezone =, and remove the preceding semicolon after "=" plus the time zone.
The method is simple. But under the XAMPP, it is useless to change the Php/php.ini file. Later found on the Internet, The Damned xampp, put php.ini under Apache/bin, modify the inside of the php.ini only to use.
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.