mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Show locale time representation at corpus/job pages.
This commit is contained in:
parent
f87363ac13
commit
48b5b09db1
@ -15,7 +15,7 @@
|
||||
|
||||
this.corpus = corpora[this.corpusId];
|
||||
creationDateElement = document.getElementById("creation-date");
|
||||
creationDateElement.value = this.corpus.creation_date;
|
||||
creationDateElement.value = (new Date(this.corpus.creation_date * 1000)).toLocaleString();
|
||||
descriptionElement = document.getElementById("description");
|
||||
descriptionElement.innerHTML = this.corpus.description;
|
||||
titleElement = document.getElementById("title");
|
||||
|
@ -17,11 +17,11 @@
|
||||
|
||||
this.job = jobs[this.jobId];
|
||||
creationDateElement = document.getElementById("creation-date");
|
||||
creationDateElement.value = this.job.creation_date;
|
||||
creationDateElement.value = (new Date(this.job.creation_date * 1000)).toLocaleString();
|
||||
descriptionElement = document.getElementById("description");
|
||||
descriptionElement.innerHTML = this.job.description;
|
||||
endDateElement = document.getElementById("end-date");
|
||||
endDateElement.value = this.job.end_date;
|
||||
endDateElement.value = this.job.end_date ? (new Date(this.job.end_date * 1000)).toLocaleString() : "Not available";
|
||||
memMbElement = document.getElementById("mem-mb");
|
||||
memMbElement.value = this.job.mem_mb;
|
||||
nCoresElement = document.getElementById("n-cores");
|
||||
@ -63,7 +63,7 @@
|
||||
break;
|
||||
case "end_date":
|
||||
updatedElement = document.getElementById("end-date");
|
||||
updatedElement.value = operation.value;
|
||||
updatedElement.value = (new Date(operation.value * 1000)).toLocaleString();
|
||||
M.updateTextFields();
|
||||
break;
|
||||
case "status":
|
||||
|
Loading…
Reference in New Issue
Block a user