状况是用smarty version 2.6.5-dev格式的时间在线上服务器显示时间不对.
会显示成 5068/08/16 10:30
检查smarty/plugins/shared.make_timestamp.php strtotime函数在不同版本下会有不同返回结果
编写代码确认 code:
win php5.3.1 result: 1313465002—bool(false)
linux php5.2.14 result: 1313465026—int(96457670026)
“96457670026”?这个就是引起错误的原因.
修改下smarty/plugins/shared.make_timestamp.php 解决问题
No Responses (yet)
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.