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.}