Skip to content

Synchronize date time format across api

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Date-Time formats are different in response of different api requests.

Steps to reproduce

  1. Make a HTTP.GET call on list-pipelines or get-pipelin-by-id(similarly for job and others as well) api notice the formats of various fields such created_at , updated_at

  2. Create a programatic webhook receiver in any programming language. Receive and parse events for pipeline, jobs, etc. notice the formats of various fields such created_at , updated_at

What is the current bug behavior?

  1. When an HTTP.GET cal is made, above fields are in ISO8601 format, "2016-08-11T11:28:34.085Z" as indicated in api docs

  2. 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.

Edited by 🤖 GitLab Bot 🤖