2. date_default_timezone_set("PRC");
3. PHP 5.1 or above
PHP.ini
date.timezone = PRC
or
Set the time zone, which is new in php5.
Find in php.ini
[Date]
; Defines the default timezone used by the date functions
date.timezone =Asia/Shanghai
Just go on it, more Timezone support can be found on the php website.
http://www.bkjia.com/PHPjc/318916.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318916.htmlTechArticle2. date_default_timezone_set("PRC"); 3. PHP5.1 and above PHP.ini date.timezone=PRC or set the time zone, which is new in php5. Find [Date] in php.ini; Definesthedefaulttimezoneusedbyt...
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn