Standardized format for expires_at field between deploy tokens and access tokens

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

Proposal

Use UTC for the expires_at fields in different tokens.

Different token API's use a different format for the expires_at field. This is annoying when using a standard script function to parse the dates.

The Deploy tokens API and the Deploy keys API use full timestamps as format while the access tokens only use the date.

Example deploy token:

    "name": "MyToken",
    "username": "gitlab+deploy-token-1",
    "expires_at": "2020-02-14T00:00:00.000Z",

Example access token:

      "name" : "access token",
      "expires_at" : "2021-01-31",

Proposal is to align between groupenvironments and groupauthentication teams how expiry dates are handled in tokens and then use a standard format.

Edited by 🤖 GitLab Bot 🤖