Skip to content

Commit

Permalink
fixed cluster date
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Nov 30, 2022
1 parent fc6af93 commit 8424505
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="col-3" style="margin: auto; text-align: center">
{{ cluster?.userlogin }}
<br />
{{ cluster?.launch_date }}
{{ cluster?.launch_date | date : 'yyyy.MM.dd HH:mm' }}
</div>
</div>
<div
Expand Down
11 changes: 0 additions & 11 deletions src/app/virtualmachines/clusters/clusterinfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,6 @@ export class Clusterinfo {
this.worker_batches = [];
this.set_worker_batches(cl.worker_batches);
}
if (cl.launch_date) {
const dt = new Date(cl.launch_date);
this.launch_date = dt.toLocaleDateString(undefined, {
year: 'numeric',
month: 'numeric',
day: 'numeric',
hour: 'numeric',
minute: '2-digit',
hour12: false,
});
}
this.sortWorkerByStatus();
}
}
Expand Down

0 comments on commit 8424505

Please sign in to comment.