Skip to content

Commit

Permalink
slrum: Parse job start time in the local time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
unkaktus committed May 20, 2024
1 parent 478ba38 commit 590a245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batchsystem/slurm/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func listOutputToJobList(listedJobs []ListedJob) (jobs []robin.Job, err error) {
}
var startTime time.Time
if listedJob.StartTime != "N/A" {
startTime, err = time.Parse(TimeLayout, listedJob.StartTime)
startTime, err = time.ParseInLocation(TimeLayout, listedJob.StartTime, time.Local)
if err != nil {
return nil, fmt.Errorf("parse submit time: %w", err)
}
Expand Down

0 comments on commit 590a245

Please sign in to comment.