Fix handling of Buildkite timestamps in SQL
@@ -39,7 +39,7 @@ func (pp *PipelinePerformance) Collect() (data.DataSet, error) {
continue
}
- err := result.AddRow(pipeline.Org, pipeline.Slug, *build.Number, *job.Name, job.CreatedAt, getDifferenceSeconds(job.CreatedAt, job.StartedAt), getDifferenceSeconds(job.StartedAt, job.FinishedAt), skippedTasks)
+ err := result.AddRow(pipeline.Org, pipeline.Slug, *build.Number, *job.Name, job.CreatedAt.Time, getDifferenceSeconds(job.CreatedAt, job.StartedAt), getDifferenceSeconds(job.StartedAt, job.FinishedAt), skippedTasks)
if err != nil {
return nil, fmt.Errorf("Failed to add result for job %s of build %d: %v", *job.Name, *build.Number, err)
}
