Pipeline/Job Webhook payload response date related fields are not in proper ISO format where as API are giving proper date format response for jobs/pipeline
Summary
I have tried checking response of Webhook payload and API of Pipeline and Job. Both are giving different date format like (create_at, finished_at, etc). API response is more likely the proper ISO format.
Steps to reproduce
- Webhooks:
- Pipeline : https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#pipeline-events ex:
2016-08-12 15:23:28 UTC
- Job : https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#job-events
- Pipeline : https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#pipeline-events ex:
- API :
- Pipeline : https://docs.gitlab.com/ee/api/pipelines.html#list-project-pipelines ex:
2016-08-11T11:28:34.085Z
- Job : https://docs.gitlab.com/ee/api/jobs.html ex:
2015-12-24T15:51:21.802Z
- Pipeline : https://docs.gitlab.com/ee/api/pipelines.html#list-project-pipelines ex:
Both way response are not similar in Date filed. Why this different format.
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Job/Pipeline API response are seems to be in correct datetime format.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Edited by Arturo Herrero