You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to check whether there is a matching leap year among the ones matching the year component, and set the Date element to the first occuring leap year?
The text was updated successfully, but these errors were encountered:
We should think about this carefully, as you say, because this could easily get out of hand. Since the only thing we should be looking to achieve here is consistency, I think we might be able to do something along the lines of:
Do nothing unless the input is 02-29 (I think if it's any other day, we're fine, regardless of which year we default to)
If the input is Feb 29, then set the year to the first leap year that also matches the range.
If there is no such year then I think the current behavior is correct.
Using v2.7.1, here is another tricky corner case:
Since some unspecified year components can match leap years, the library should not move that date to March.
But then we should be careful! Because some other unspecified years such as "21X3" never match a leap year and should therefore behave accordingly.
But right now, the behavior is basically depending on whether the "chosen builtin date" is a leap year, which gives inconsistent results:
Would it be possible to check whether there is a matching leap year among the ones matching the year component, and set the Date element to the first occuring leap year?
The text was updated successfully, but these errors were encountered: