mirror of
https://github.com/newnius/YAO-portal.git
synced 2025-12-15 09:36:43 +00:00
update
This commit is contained in:
@@ -4,7 +4,7 @@ function timeFormatter(unixTimestamp) {
|
|||||||
}
|
}
|
||||||
var d = new Date(unixTimestamp * 1000);
|
var d = new Date(unixTimestamp * 1000);
|
||||||
d.setTime(d.getTime() - d.getTimezoneOffset() * 60 * 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) {
|
function formatDate(date, fmt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user