发现UCenter一个Bug,并且已经找到解决方案,是个弱智Bug
基本设置的日期格式无法修改,一经修改就变成“dateformat”
经过研究代码,发现
ucenter/control/admin/setting.php
的function onls()函数里面
$dateformat = str_replace(array('yyyy', 'mm', 'dd'), array('y', 'n', 'j'), strtolower(dateformat));
strtolower()里面的dateformat少了$符号
另外,下面3行
$this->set_setting('dateformat', dateformat);
set_setting()的第二个参数dateformat也少了$符号
导致最终数据库中保存了dateformat这个字符串。在这里加上两个$符号就搞定了。