From dd9187fd139b35ca5fd74d4b0ec72699a894f95e Mon Sep 17 00:00:00 2001 From: Nishanthi Dasanayaka Date: Tue, 18 Jun 2024 08:49:14 +1000 Subject: [PATCH] [BUGFIXED]-Job submission details --- src/views/AdminJobs.vue | 10 ++++++++++ src/views/Home.vue | 4 ++-- src/views/Jobshistory.vue | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/AdminJobs.vue b/src/views/AdminJobs.vue index 026fdef..28185dc 100644 --- a/src/views/AdminJobs.vue +++ b/src/views/AdminJobs.vue @@ -120,6 +120,7 @@ { text: 'Slurm Jobid', value: 'jobid' }, { text: 'Jobname', value: 'jobname' }, { text: 'Status', value: 'status' }, + { text: 'Submitted', value: 'submitted' }, { text: 'Start', value: 'start' }, { text: 'End', value: 'end' }, { text: 'Total', value: 'total' }, @@ -152,13 +153,22 @@ let job = this.jobs[i] if(job.start) { // convert to local timezone + console.log("job.start") + console.log(job.start) job.start = new Date(Date.parse(job.start) + new Date().getTimezoneOffset()) + + console.log(job.start) // ot string job.start = job.start.toLocaleString() + console.log(job.start) } if(job.end){ + console.log("job.end") + console.log(job.end) job.end = new Date(Date.parse(job.end) + new Date().getTimezoneOffset()) + console.log(job.end) job.end = job.end.toLocaleString() + console.log(job.end) } } this.loading = false diff --git a/src/views/Home.vue b/src/views/Home.vue index 17efe1f..bce426f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -8,10 +8,10 @@ pre-process and deconvolve datasets on the Wiener High Performance Cluster.

-

Notices

+ diff --git a/src/views/Jobshistory.vue b/src/views/Jobshistory.vue index 1ae3729..5d78252 100644 --- a/src/views/Jobshistory.vue +++ b/src/views/Jobshistory.vue @@ -82,6 +82,7 @@ { text: 'Slurm Jobid', value: 'jobid' }, { text: 'Jobname', value: 'jobname' }, { text: 'Status', value: 'status' }, + { text: 'Submitted', value: 'submitted' }, { text: 'Start', value: 'start' }, { text: 'End', value: 'end' }, { text: 'Total', value: 'total' },