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

WBOY
Release: 2016-06-13 13:52:53
Original
1046 people have browsed it

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

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

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

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!