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

Date between year 01 and 99 can't be selected #703

Open
MrSpitfire06 opened this issue Jan 21, 2025 · 2 comments
Open

Date between year 01 and 99 can't be selected #703

MrSpitfire06 opened this issue Jan 21, 2025 · 2 comments

Comments

@MrSpitfire06
Copy link

MrSpitfire06 commented Jan 21, 2025

The date picker doesn't allow the user to select a date between 01 and 99. It will force the user to select 1901/2001 and 1999/2099. It works with year 100 and so on.
The same issue applies to negative date -01 to -99 (you can't even add the date to the sparnatural query), but disappears with -100.

Image

Image

Image

Image

The issue is very specific, since OpenArchaeo's triplestore does present this kind of datation in its knowledge graph. It could be a rare issue though.

@tfrancart
Copy link
Contributor

For reference the code is at :

parseInput(dateValue:DateValue["value"]): DateValue {

Unfortunately I think this is a limitation of the calendar component we use (https://www.npmjs.com/package/@chenfengyuan/datepicker) : it turns 2-digits years into 19xx or 20xx years, and I think we receive the 19xx or 20xx years as values in our code.
It raises the question of still using this datepicker component or use a more modern one (?)

@MrSpitfire06
Copy link
Author

That's what I thought, It could be an improvement for later, since the issue will probably not appear for other Sparnatural instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants