Skip to content

Inconsistent CLI output format for GitCommitDate #485

@sychare

Description

@sychare

Issue

Running nbgv get-version -f json and nbgv get-version -v GitCommitDate output different date formats and should be normalised to a machine readable format i.e. ISO 8601.

Actual outcome

> nbgv get-version -v GitCommitDate
26/05/2020 13:36:29 +01:00
> nbgv get-version -f json | sls 'gitcommitdate'
  "GitCommitDate": "2020-05-26T13:36:29+01:00",
    "NBGV_GitCommitDate": "26/05/2020 13:36:29 +01:00",

Expected outcome

> nbgv get-version -v GitCommitDate
2020-05-26T13:36:29+01:00
> nbgv get-version -f json | sls 'gitcommitdate'
  "GitCommitDate": "2020-05-26T13:36:29+01:00",
    "NBGV_GitCommitDate": "2020-05-26T13:36:29+01:00",

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions