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

Changing text input in tjdb datetime picker shows incorrect intermediate values #10301

Open
shaurya-sharma064 opened this issue Jul 8, 2024 · 0 comments
Labels
bug Something isn't working database

Comments

@shaurya-sharma064
Copy link
Collaborator

Version Information

Environment

Tooljet CE

What is the expected behaviour?

When changing the time using text input, the date shouldn't fluctuate.

What is the current behaviour?

If the date and month are both equal to or below 12 and if the time entered is not in proper format the calendar will switch month and day until proper time is entered.
This happens because 00:00 is not a valid time in 12 hour format causing the datetime picker to default to some other format of MM/DD/YYYY

How to reproduce the issue?

  1. Create a date with month less than 12 and day less than 12 (Both shouldn't be equal)
  2. Change the hour using text input
  3. This will lead the month and day to be swapped until the correct format is entered

Screenshots or Screencast

https://jam.dev/c/5470edf3-5c9f-4164-accd-0229caa80c2c

@shaurya-sharma064 shaurya-sharma064 added the bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working database
Projects
None yet
Development

No branches or pull requests

2 participants