mirror of https://github.com/MISP/misp-dashboard
fix: [js] Contributors dates will now look: 2019-04-03@11:03 - Amend if unwanted.
parent
e9b1339967
commit
bc8e74a400
|
@ -346,7 +346,8 @@ function addLastContributor(datatable, data, update) {
|
|||
} else {
|
||||
last_added_contrib = org;
|
||||
var date = new Date(data.epoch*1000);
|
||||
date.toString = function() {return this.toTimeString().slice(0,-15) +' '+ this.toLocaleDateString(); };
|
||||
//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");
|
||||
var to_add = [
|
||||
date,
|
||||
data.pnts,
|
||||
|
@ -383,7 +384,8 @@ function addAwards(datatableAwards, json, playAnim) {
|
|||
var award = createTrophyImg(json.award[1][1], 40, categ);
|
||||
}
|
||||
var date = new Date(json.epoch*1000);
|
||||
date.toString = function() {return this.toTimeString().slice(0,-15) +' '+ this.toLocaleDateString(); };
|
||||
//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");
|
||||
var to_add = [
|
||||
date,
|
||||
createImg(json.logo_path, 32),
|
||||
|
|
Loading…
Reference in New Issue