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

Years are seen wrong by date picker #17778

Open
liviuconcioiu opened this issue Oct 13, 2022 · 4 comments
Open

Years are seen wrong by date picker #17778

liviuconcioiu opened this issue Oct 13, 2022 · 4 comments
Labels
affects/5.2 This issue or pull-request affects 5.2.x releases (and maybe further versions) affects/6.0 This issue or pull-request affects 6.0.x releases (and maybe further versions) Bug A problem or regression with an existing feature confirmed/5.2 This issue is confirmed to be reproduced on 5.2 at the time this label was set confirmed/6.0 This issue is confirmed to be reproduced on 6.0 at the time this label was set enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface

Comments

@liviuconcioiu
Copy link
Contributor

Describe the bug

0000-01-01 is seen as 2000-01-01
0025-01-01 is seen as 2025-01-01
0035-01-01 is seen as 1935-01-01

To Reproduce

Steps to reproduce the behavior:

  1. Create a table with a date column
  2. Insert a row (paste 0000-01-01 and modify the year for the other years)
  3. See error

Expected behavior

Dates should be seen correctly.

Screenshots

13.10.2022_02.22.12_REC.mp4

Server configuration

  • Operating system: Linux
  • Web server: nginx/1.14.2
  • Database version: 8.0.18 - MySQL Community Server - GPL
  • PHP version: 7.4.29
  • phpMyAdmin version: 5.2.1-dev

Client configuration

  • Browser: Firefox/Chrome
  • Operating system: Windows

Additional context

Add any other context about the bug here.

@liviuconcioiu
Copy link
Contributor Author

liviuconcioiu commented Oct 13, 2022

Also, the max year should be limited to 9999.

13.10.2022_02.26.28_REC.mp4

@williamdes williamdes added Bug A problem or regression with an existing feature enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface labels Oct 13, 2022
@liviuconcioiu
Copy link
Contributor Author

Another issue with date picker. When clicking a date for the first time is seen correctly. All further clicks on other dates are seen as the first date.

23.10.2022_14.40.30_REC.mp4

@williamdes williamdes added affects/5.2 This issue or pull-request affects 5.2.x releases (and maybe further versions) affects/6.0 This issue or pull-request affects 6.0.x releases (and maybe further versions) confirmed/5.2 This issue is confirmed to be reproduced on 5.2 at the time this label was set confirmed/6.0 This issue is confirmed to be reproduced on 6.0 at the time this label was set labels Oct 26, 2022
@liviuconcioiu
Copy link
Contributor Author

I will add another issue, sometimes years are going negative. Theoretically should be OK, but negative years aren't allowed.

https://dev.mysql.com/doc/refman/5.6/en/datetime.html

negative

@williamdes williamdes added this to the 5.2.1 milestone Nov 5, 2022
@williamdes
Copy link
Member

williamdes commented Nov 5, 2022

Thank, I think it should get fixed for 5.2.1, it's not a very good UI behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/5.2 This issue or pull-request affects 5.2.x releases (and maybe further versions) affects/6.0 This issue or pull-request affects 6.0.x releases (and maybe further versions) Bug A problem or regression with an existing feature confirmed/5.2 This issue is confirmed to be reproduced on 5.2 at the time this label was set confirmed/6.0 This issue is confirmed to be reproduced on 6.0 at the time this label was set enhancement A feature request for improving phpMyAdmin ui Issues relating to the user interface
Projects
None yet
Development

No branches or pull requests

2 participants