fix datetime error

This commit is contained in:
wlx 2013-06-03 22:22:51 +00:00
parent 3409a60d43
commit 2d8f6765ae
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ $this->headScript()->appendFile('/js/jquery.masonry.min.js');
<div class="data_content clear">
<div class="thumb box-shadow"><img src="/service/thumb/uuid/<?php echo $md['uuid'];?>" /></div>
<div class="description"><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></div>
<div class="description">时间范围:<?= date("Y-m-d",$md['timebegin']) ?> - <?= date("Y-m-d",$md['timeend']) ?></div>
<div class="description">时间范围:<?= date("Y-m-d",strtotime($md['timebegin'])) ?> - <?= date("Y-m-d",strtotime($md['timeend'])) ?></div>
</div>
</li>
<?php endforeach;endif; ?>