mirror of https://github.com/MISP/misp-dashboard
fix: [contributors] Show the correct datetime
parent
3ca3b37785
commit
618da4eea5
|
@ -347,7 +347,7 @@ function addLastContributor(datatable, data, update) {
|
|||
last_added_contrib = org;
|
||||
var date = new Date(data.epoch*1000);
|
||||
//date.toString = function() {return this.toTimeString().slice(0,-15) +' '+ this.toLocaleDateString(); };
|
||||
date = date.getFullYear() + "-" + String(date.getMonth()).padStart(2, "0") + "-" + String(date.getDay()).padStart(2, "0") + "@" + String(date.getHours()).padStart(2, "0") + ":" + String(date.getMinutes()).padStart(2, "0");
|
||||
date = date.getFullYear() + "-" + String(date.getMonth()+1).padStart(2, "0") + "-" + String(date.getDate()).padStart(2, "0") + "@" + String(date.getHours()).padStart(2, "0") + ":" + String(date.getMinutes()).padStart(2, "0");
|
||||
var to_add = [
|
||||
date,
|
||||
data.pnts,
|
||||
|
@ -385,7 +385,7 @@ function addAwards(datatableAwards, json, playAnim) {
|
|||
}
|
||||
var date = new Date(json.epoch*1000);
|
||||
//date.toString = function() {return this.toTimeString().slice(0,-15) +' '+ this.toLocaleDateString(); };
|
||||
date = date.getFullYear() + "-" + String(date.getMonth()).padStart(2, "0") + "-" + String(date.getDay()).padStart(2, "0") + "@" + String(date.getHours()).padStart(2, "0") + ":" + String(date.getMinutes()).padStart(2, "0");
|
||||
date = date.getFullYear() + "-" + String(date.getMonth()+1).padStart(2, "0") + "-" + String(date.getDate()).padStart(2, "0") + "@" + String(date.getHours()).padStart(2, "0") + ":" + String(date.getMinutes()).padStart(2, "0");
|
||||
var to_add = [
|
||||
date,
|
||||
createImg(json.logo_path, 32),
|
||||
|
|
Loading…
Reference in New Issue