Skip to content

[BUG] DateTime format broken #225

@chbo-ml

Description

@chbo-ml

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Send a PUT request for a submodel containing a Property with Datatype DateTime e.g. {
    "idShort": "Date",
    "valueType": "xs:dateTime",
    "value": "22026-03-21T13:13:35.485Z",
    "modelType": "Property"
    },
  2. Retrieve the saved Value: {"idShort":"Date","modelType":"Property","value":"2026-03-21 13:13:35.485+00","valueType":"xs:dateTime"}

Expected behavior
Retrieve the saved Value should return the date back in ISO-Format.: {"idShort":"Date","modelType":"Property","value":"22026-03-21T13:13:35.485","valueType":"xs:dateTime"} as stored. Especially because storing a non-ISO formatted date time is not allowed.

BaSyx (please complete the following information):

  • BaSyx Version eclipsebasyx/submodelrepository-go:1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions