Closed betsyx closed 4 years ago
app.locals.dateFormat = function (date) {
var vDay = padWithZeros(date.getDate(), 2);
var vMonth = padWithZeros(date.getMonth() + 1, 2);
var vYear = padWithZeros(date.getFullYear(), 2);
var vHour = padWithZeros(date.getHours(), 2);
var vMinute = padWithZeros(date.getMinutes(), 2);
var vSecond = padWithZeros(date.getSeconds(), 2);
// return ${vYear}-${vMonth}-${vDay}
;
return ${vYear}-${vMonth}-${vDay} ${vHour}:${vMinute}:${vSecond}
;
};
我见app.js 上 写了显示时分秒的代码呀,为啥 跑在leancloud上的时候显示只有年月日呀,带佬们
fixed
请教一下,评论时间显示具体到分秒,是不是得改git上的源码呀,