流水线查询返回时间格式化

This commit is contained in:
moshenglv 2021-01-13 15:10:24 +08:00
parent cb6c4b1e3f
commit da1a992670
1 changed files with 2 additions and 5 deletions

View File

@ -2,8 +2,5 @@ json.id pipeline.id
json.pipeline_name pipeline.pipeline_name
json.pipeline_status pipeline.pipeline_status
json.file_name pipeline.file_name
json.created_at pipeline.created_at
json.updated_at pipeline.updated_at
json.stages pipeline.pipeline_stages do |pipeline_stage|
json.partial! "/ci/pipeline_stages/list", pipeline_stage: pipeline_stage
end
json.created_at pipeline.created_at.strftime("%Y-%m-%d %H:%M:%S")
json.updated_at pipeline.updated_at.strftime("%Y-%m-%d %H:%M:%S")