API Standardize Date Format
Created by: bassrock
Hi,
A suggestion for the api here. It looks like the date format is different for all the api calls.
For Example:
http://demo.gitlab.com/api/v3/projects/1/issues?page=1&per_page=20
Gives objects like:
{"id":110,"project_id":1,"title":"bug2","description":"desc","labels":[],"milestone":null,"assignee":{"id":2,"username":"jsmith","email":"[email protected]","name":"John Smith","state":"active","created_at":"2012-12-21T13:02:20Z"},"author":{"id":2,"username":"jsmith","email":"[email protected]","name":"John Smith","state":"active","created_at":"2012-12-21T13:02:20Z"},"state":"reopened","updated_at":"2013-06-06T00:06:46Z","created_at":"2013-02-04T14:28:36Z"}
Where the times are formatted like: 2013-02-04T14:28:36Z
When:
http://demo.gitlab.com/api/v3/projects/1/repository/commits?id=1&per_page=300
Gives objects like:
{"id":"d33bf10c5696f9857745527b54ec37d15a981e3f","short_id":"d33bf10c569","title":"bump selenium-webdriver","author_name":"Jonne Haß","author_email":"[email protected]","created_at":"2012-09-07T00:35:17+00:00"}
Where the times are formatted like: 2012-09-07T00:35:17+00:00
I think it would be a good idea if all the api's followed: 2012-09-07T00:35:17+00:00