Solution to incorrect php time_PHP tutorial

WBOY
Release: 2016-07-21 15:52:22
Original
801 people have browsed it


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.

www.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...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!