Synchronize date time format across api
Summary
Date-Time
formats are different in response of different api requests.
Steps to reproduce
-
Make a
HTTP.GET
call onlist-pipelines
orget-pipelin-by-id
(similarly for job and others as well) api notice the formats of various fields suchcreated_at
,updated_at
-
Create a programatic
webhook receiver
in any programming language. Receive and parse events for pipeline, jobs, etc. notice the formats of various fields suchcreated_at
,updated_at
What is the current bug behavior?
-
When an
HTTP.GET
cal is made, above fields are inISO8601
format,"2016-08-11T11:28:34.085Z"
as indicated in api docs -
On the other hand, in
webhooks
, above fields are in,2016-08-12 15:23:28 UTC
as indicated in hook-event docs
What is the expected correct behavior?
Fields should have value in same format, preferrably RFC3339
or ISO8601
with output values in UTC
. This will solve a lot issues in handling and reduce code lines at consumer end.