修改BUG:兼容Safari浏览器对时间格式不识别的BUG

This commit is contained in:
Argo-Lenovo 2017-04-07 13:29:54 +08:00
parent c638852ee1
commit a4e256c073
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@
default:
break;
}
return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, css, options.url, Math.max(0, ele.Interval - Math.round((new Date() - new Date(ele.CreateTime)) / 1000)));
return $.format(html, ele.Interval, ele.Key, ele.Desc, ele.Value, css, options.url, Math.max(0, ele.Interval - Math.round((new Date() - new Date(ele.CreateTime.replace(/-/g, '/'))) / 1000)));
}).join('');
$sortable.append($.format('<li class="title">{0}-{1}</li>', options.item.Desc, options.item.Key));
$sortable.append(content);