-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix RangeError: Invalid time value #364
Conversation
✅ Deploy Preview for s-forms-kbss ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I also found an error when I clicked on some of the select inputs (not all). |
See also how it used to work: |
Regarding timestamp, i can think of two variants: A)
or B)
|
@palagdan unless you have better idea I would go with variant B). It seems to me nice solution as "datetime" is rather indicating frontend properties of the component (= layout-class) not how it is stored in RDF . There are two fundamental properties:
Optional property is (it is default and it should work without it):
You can see my whole reasoning about it in chatGPT -- https://chatgpt.com/share/67054eed-155c-8006-9c22-ea64d61cde40 |
@blcham |
I investigated and found out the the problem is with jsonld-utils library that returns incorrect responses in hasValue function. That is why here: function hasValue(object, property, value) {
return object[property] !== undefined && object[property] !== null && (object[property] === value || object[property]['@id'] === value || object[property].indexOf && object[property].indexOf(value) !== -1);
} When I suggest refactoring out this library in other places as well, as it may introduce bugs elsewhere. |
I removed DATETIME_NUMBER_FORMAT because it was a poor workaround for the numerical representation of the date. The resolveDateTimeFormat function should not need to handle this, as it deals with layouts, not the internal representation of the date. Now it works as expected:
You can have a look at it after merging this: #371 |
542f288
to
835620a
Compare
Good job! |
Fix #363