Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4252

Closed
Open
Created Jun 08, 2013 by Administrator@rootOwner

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

Assignee
Assign to
Time tracking