use the correct Date property

This commit is contained in:
Nils Maier 2019-08-20 17:17:23 +02:00
parent deec569c91
commit bf39245874
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ export class DownloadItem extends EventEmitter {
public destFull: string;
public date: number;
public startDate: number;
public sessionId: number;

View File

@ -179,7 +179,7 @@ export class Tooltip {
this.name.textContent = item.destFull;
this.from.textContent = item.usable;
this.size.textContent = item.fmtSize;
this.date.textContent = new Date(item.date).toLocaleString();
this.date.textContent = new Date(item.startDate).toLocaleString();
const running = item.state === DownloadState.RUNNING;
const hidden = this.eta.classList.contains("hidden");