agera-edc / DataDashboard

Downstream fork of DataDashboard Eclipse-DataspaceConnector Repo
Apache License 2.0
0 stars 1 forks source link

UI: Wrong numeric date interpretation #6

Closed algattik closed 2 years ago

algattik commented 2 years ago

EDC returns date in seconds since epoch

{
    "id": "4a75736e-001d-4364-8bd4-9888490edb56:cb5663d8-f209-4f99-84ab-ca1608ce9e61",
    "providerAgentId": "urn:connector:provider",
    "consumerAgentId": "urn:connector:consumer",
    "contractSigningDate": 1652261566,
    "contractStartDate": 1652261566,
    "contractEndDate": 1683797566,
    "assetId": "test-document",
    "policyId": "fea816b2-c554-4970-aef4-1ff545090f2e"
}

but UI interprets them as milliseconds

image

Acceptance criteria

paullatzelsperger commented 2 years ago

you mention a screenshot in the docs, but I couldn't find one. not sure if it makes a ton of sense to document the developer UI at that level of detail.

algattik commented 2 years ago

The screenshot would be in MVD repo. We can update those later. Thanks a lot for the fix