Home  >  Article  >  Backend Development  >  超级郁闷的有关问题,smarty的date_format函数

超级郁闷的有关问题,smarty的date_format函数

WBOY
WBOYOriginal
2016-06-13 13:52:53992browse

超级郁闷的问题,smarty的date_format函数
在服务器redhat   as4.0上传了一个计数器,使用smarty模版写的,显示时间为116926-03-21   正确时间为2007-01-19,研究了好几天觉的应该是smarty的date_format函数没法用,忘高手指点下,怎么改好!

------解决方案--------------------
PHP里面要转换为当前的时间撮。

str2time
------解决方案--------------------
就是时间戳问题哦!我也遇到过的!!
------解决方案--------------------
时间让PHP去处理吧.不要在模板中搞那些东东了.

Statement:
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