Authored by tmq

时间戳转换

... ... @@ -635,7 +635,10 @@ define('yohood', function(require, exports) {
var template = function(topic, img, url, isVideo, isTitleStyle, title, imgStyle,create_time) {
var playIcon = '';
var titleStyle = '';
var d = new Date(create_time);
function getLocalTime(nS) {
return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' ');
}
var d = getLocalTime(create_time);
var type='<span class="item-time"><?php $en = array("01"=>"January","02"=>"February","03"=>"March","04"=>"April","05"=>"May","06"=>"June","07"=>"July","08"=>"August","09"=>"September","10"=>"October","11"=>"November","12"=>"December");$m=date("m", '+create_time+');echo $en[$m]?>&nbsp;&nbsp;&nbsp;<?php ECHO $m=date("d.Y", '+create_time+')?></span>';
var title = $('<p>' + title + '</p>').text();
var html = '<div class="layout-item clearfix">' +
... ...