-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Improve time entry form #4707
Comments
Hello, I was looking to update my instance and saw this item. I would like to add some few pain point regarding this. My rationale for them is: I am living in a multilingual (American English, Canadian English, French Canada) and multicultural (USA, English Canada, Quebec) region, working in a multi-national (Canada, France, UK, Germany, etc.) company. This means that end-users are kinda "polyglot" when it comes to date-time formatting as we are used to see them all mixed. At the same time, we tend to have a default way to enter them, which might not be the one that the system is configured to deal with. And like I said in a previous discussion, on a personal view, the different locales doesn't match my "ideal" date-time formatting. 😉 Here the pain points:
|
I would like to add, that the time (start and also end time) and not only the duration could be improved. We updated from Kimai 1.x to Kimai 2.x and encountered that the time entry was a feature degradation. With Kimai 1 I was able to enter |
Exactly as I wrote my last comment, some one added this feature request: #4723 |
@darioackermann If you propose a PR, make sure that currently supported formats do not break: This could be a starting point for the JS code: |
@kevinpapst could you also reopen the other issue? Or should that be fixed together with this one? |
Wouldn't at least a partial fix be to remove everything that's not a digit and then re-construct the time entered according to the locale, adding colons, dashes/slashes/dots (dates) and assume either 0 or 00 where there are no numbers for time, and the current date's various components where there are no numbers for date? |
I'm not sure removing any non-digit then reconstruct the time with zero-filling is a good idea because it is not clear if zeroes should be included before or after the digit. user input : ":1" Also, we need to think about the "hours speed filling" case. |
IMHO:
But perhaps there could be an option for "hours speed filling" then ... which could bring
and so on ... 🤔 And, it could be context aware. Duration time handling is different from end time handling. So maybe "hours speed filling" is only used for duration, with the possibility for decimals. Don't know what's best or right, just throwing out ideas 😊 |
For the duration entry (if you do not care about exact start/stop Times) could be like: |
Describe the problem
For instance if you enter ":35" for duration it isn't smart enough to know you mean "0:35".
Describe the solution you'd like
Detect a colon
:
and interpret this as minutesDescribe alternatives you've considered
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: