Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use xsd:date/xsd:dateTime field in forms #148

Open
kburger opened this issue Jun 4, 2024 · 0 comments
Open

Unable to use xsd:date/xsd:dateTime field in forms #148

kburger opened this issue Jun 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kburger
Copy link

kburger commented Jun 4, 2024

Using server v1.17.2 and client v1.17.0. When using a shape that deals with dates or time, the client seems to break down. I've tested in FireFox and Safari, using this example shape:

[ sh:path dcterms:issued ;
  sh:datatype xsd:dateTime ; # or xsd:date
  sh:minCount 1 ;
  dash:viewer dash:LiteralViewer ;
  dash:editor dash:DateTimePickerEditor ; # or dash:DatePickerEditor
]

When creating new metadata with this shape, the form fails with the following error hint on the input field:
http://www.w3.org/ns/shacl#DatatypeConstraintComponent

We see the value in the form widget as expected, e.g. 2024-06-04 for a xsd:date/dash:DatePickerEditor or 2024-06-04 12:00 for a xsd:dateTime/dash:DateTimePickerEditor. In the RDF preview however, the value being used is always in the format of "Tue Jun 04 2024 00:00:00 GMT+0200 (Central European Summer Time)".

This formatted value will fail on SHACL validation, which expects an ISO8601 formatted date for xsd:date or timestamp for xsd:dateTime.

We believe this is a more generic description of the issue raised in #147.

@kburger kburger changed the title Unable to use xsd:date/xsd:dateTime field in form Unable to use xsd:date/xsd:dateTime field in forms Jun 4, 2024
@kburger kburger added the bug Something isn't working label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant