/**
* 格式化UTC格式的日期
* 返回格式:2018-04-12 07:22:36
*/
function fmtDate(date) {
var dateee = new Date(date).toJSON();
return new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '');
}
/**
* 格式化UTC格式的日期
* 返回格式:2018-04-12 07:22:36
*/
function fmtDate(date) {
var dateee = new Date(date).toJSON();
return new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '');
}