mirror of https://github.com/MISP/misp-dashboard
fix: [js] Contributors dates will now look: 2019-04-03@11:03 - Amend … (#101)
fix: [js] Contributors dates will now look: 2019-04-03@11:03 - Amend …fixlogs
commit
ca0bfe6356
|
@ -83,7 +83,7 @@ class LogItem():
|
|||
|
||||
def get_row(self):
|
||||
to_ret = {}
|
||||
#Number to keep them sorted (jsonify sort keys)
|
||||
# Number to keep them sorted (jsonify sort keys)
|
||||
for item in range(len(LogItem.FIELDNAME_ORDER)):
|
||||
try:
|
||||
to_ret[item] = self.fields[item]
|
||||
|
|
|
@ -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