1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-06-06 07:11:54 +00:00
This commit is contained in:
Newnius 2020-06-11 11:21:51 +08:00
parent 20b92071e1
commit 0fa136bb3b

View File

@ -4,7 +4,7 @@ function timeFormatter(unixTimestamp) {
}
var d = new Date(unixTimestamp * 1000);
d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 1000);
return formatDate(d, '%Y-%M-%d %H:%m');
return formatDate(d, '%Y-%M-%d %H:%m:%s');
}
function formatDate(date, fmt) {