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 picker AutoCrud, AutoGrid and AutoForm broken when the date is 31st of October #2887

Closed
DuncanCasteleyn opened this issue Oct 31, 2024 · 5 comments · Fixed by #2894
Closed
Assignees
Labels
bug Something isn't working hilla Issues related to Hilla Impact: High Severity: Blocker

Comments

@DuncanCasteleyn
Copy link

DuncanCasteleyn commented Oct 31, 2024

Description

No months can be used that only have 30 days on the 31 of October, setting the date of the computer to the 1st of November resolves the issue.

The time of existing items being edited also jumps back 2 hours.

Also reported this on the forum: https://vaadin.com/forum/t/autocrud-grid-form-date-time-picker-doesnt-allow-to-select-september-2024/167670/6

Expected outcome

I get the date I selected.

Minimal reproducible example

All 3 Auto doc pages contain a date time picker where the bug can be reproduced.

https://vaadin.com/docs/latest/components/auto-crud
https://vaadin.com/docs/latest/components/auto-grid
https://vaadin.com/docs/latest/components/auto-form

Steps to reproduce

  1. Set date of computer to 31 November 2024
  2. Try to select a month with only 30 days
  3. Result = another month

Environment

Vaadin version(s): 24.5.2
OS: Windows

Browsers

Chrome, Firefox, Edge

@DuncanCasteleyn DuncanCasteleyn changed the title Date picker AutoCrud, AutoGrid and AutoForm broken when the data is 31st of a month Date picker AutoCrud, AutoGrid and AutoForm broken when the date is 31st of October Oct 31, 2024
@platosha platosha added the hilla Issues related to Hilla label Nov 1, 2024
@platosha
Copy link
Contributor

platosha commented Nov 1, 2024

Hi, let me transfer to the Hilla repo, where AutoCrud family is maintained.

@platosha platosha transferred this issue from vaadin/web-components Nov 1, 2024
@DuncanCasteleyn
Copy link
Author

DuncanCasteleyn commented Nov 4, 2024

Can somebody add the bug label to this issue?

Hope this issue will be fixed soon, I'm assuming next month it will happen again.

@cromoteca cromoteca added the bug Something isn't working label Nov 4, 2024
@cromoteca
Copy link
Contributor

Bug confirmed

@platosha
Copy link
Contributor

platosha commented Nov 5, 2024

Possibly already fixed by #2882

@cromoteca
Copy link
Contributor

Not fixed by #2882. Turns out that in Auto* components it is impossible to select a date from a month that has less days than the current day of month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hilla Issues related to Hilla Impact: High Severity: Blocker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants