修复首页新闻的时间问题

This commit is contained in:
wlx 2014-06-18 13:46:25 +00:00
parent 3b2258357f
commit 5421a8ff06
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@
<ul> <ul>
<?php foreach($this->list_news as $k=>$v){ ?> <?php foreach($this->list_news as $k=>$v){ ?>
<li> <li>
[<?= date('Y-m-d',strtotime($v['ts_created'])) ?>]<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-ok-sign"> </i><?= $v['title'] ?></a> [<?= date('Y-m-d',strtotime($v['ts_published'])) ?>]<a href="<?= $v['url'] ?>" title="<?= $v['title'] ?>"><i class=" icon-ok-sign"> </i><?= $v['title'] ?></a>
</li> </li>
<?php } ?> <?php } ?>
<span class="pull-right"><a href="/archives/" target="_blank" class="more">更多>></a></span> <span class="pull-right"><a href="/archives/" target="_blank" class="more">更多>></a></span>