php 时间获取相差8小时

WBOY
Release: 2016-06-23 13:53:00
Original
1155 people have browsed it

php 时间获取相差8小时

by 伍雪颖


date_default_timezone_set('PRC’);
$timeStr = date("Y-m-d H:i:s",time());


服务器加上这句话刚好可以解决AFNetWorking解析json的问题

Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (JSON text did not start with array or object and option to allow fragments not set.) UserInfo=0x196463f0 {NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}



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!