Skip to content

Commit

Permalink
[BUGFIXED]-Job submit time fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ndasanayaka committed Jun 18, 2024
1 parent 6acaf88 commit 3265020
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/views/AdminJobs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
return
this.loading = true
this.jobs = await PreferenceAPI.filter_jobs(this.filters.status, this.filters.username, this.filters.start, this.filters.jobname)
const options = {
/* const options = {
timeZone: 'Australia/Brisbane',
year: 'numeric',
month: '2-digit',
Expand All @@ -167,7 +167,7 @@
this.jobs[i].submitted = utctime.toLocaleString('en-AU', options)
}
}
} */
this.loading = false
},
async applyFilter(){
Expand Down
11 changes: 9 additions & 2 deletions src/views/Jobshistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@
this.loading = true
// only list running and submitted jobs
this.jobs = await PreferenceAPI.list_jobs(false)
const options = {
console.log("this.jobs")
console.log(this.jobs)
/* const options = {
timeZone: 'Australia/Brisbane',
year: 'numeric',
month: '2-digit',
Expand All @@ -126,13 +128,18 @@
for(let i=0; i<this.jobs.length; i++) {
let job = this.jobs[i]
console.log("a job")
console.log(job)
if(job.submitted) {
console.log(job.submitted)
let utctime = new Date(job.submitted)
console.log(utctime)
this.jobs[i].submitted = utctime.toLocaleString('en-AU', options)
console.log(this.jobs[i].submitted)
}
}
} */
console.log("this.jobs")
console.log(this.jobs)
Expand Down

0 comments on commit 3265020

Please sign in to comment.