Summary: | numbers for start/end in edit-event-dialog interpreted as 0:xx | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | fuqnbastard |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | carlos-spam, gjditchfield, kde-2011.08, smartins |
Priority: | NOR | ||
Version: | 3.2.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
fuqnbastard
2004-07-16 21:37:35 UTC
Thanks for the bug report. You are probably right about the 12, but the problem here is that you can also enter times without the ':', e.g. 615 meaning 6:15. Now how would you then interpret 0012 ? You just enter a number, so 0012=12 (unless we parse the string manually, which will include another bunch of problems), which according to your wish 12=12:00... That's the other side of the coin. Reinhold *** Bug 91396 has been marked as a duplicate of this bug. *** Reassigning all KOrganizer bug reports and wishes to the newly created korganizer-devel mailing list. *** Bug 171189 has been marked as a duplicate of this bug. *** A config setting to choose the behaviour would be useful. > Now how would you
> then interpret 0012?
I would interpret "0012" as 00:12, distinct from "12" which would be 12:00. I understand that there is a technical difficulty of distinguishing 0012 from 12 however the user should not be concerned with such technical difficulties. You could treat the input field as text instead of as an integer, and deal with it that way. As a user, that technical detail does not concern me.
But really, how often does one make an appointment for the hours 0:00 - 0:59 anyway? While it technically should be possible, it is obvious that it is far less common to make appointments for those hours than it does for standard waking and business hours. Therefore the default behaviour should be to assume that "12" would be "1200". One can still enter military time if he likes, and "12" is _not_ military time for either "1200" or for "0012". Just check if the input is less than 100, if it is, then multiply by 100. The rare occasion in which someone needs to make an appointment at the hours 00:01 - 00:59 can be dealt with by actually typing 00:12 with a colon.
With the KF5 time widget, the hour and minute fields are entered separately, so this problem doesn't arise. |