I'm developing a linked dates component and for that I would like to use the native date and time selection inputs, datetime-local.
The objective is that in the change event of the "start input", this value is set in the "min" attribute of the "end input". And likewise, in the change event the "end input", the value is set in the "max" attribute of the "start input".
I do this to take advantage of the component's native behavior that blocks the selection of some dates according to the min/max fields. This is working wonderfully.
The problem comes from how parsley uses the min and max attributes. Because (and I can't figure out why) it can't correctly validate if one date is less/greater than another in the format this native input uses, "YYYY-MM-DDTHH:mm".
In the images below I exemplify what happened.
Start input limited to dates below than "2023-07-20T10:00"