[KEXI] [Bug 402962] New: Fix handling localized month/day names for input formats

Jarosław Staniek bugzilla_noreply at kde.org
Mon Jan 7 09:19:49 GMT 2019


https://bugs.kde.org/show_bug.cgi?id=402962

            Bug ID: 402962
           Summary: Fix handling localized month/day names for input
                    formats
           Product: KEXI
           Version: 3.1.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Tables
          Assignee: kexi-bugs at kde.org
          Reporter: staniek at kde.org
                CC: adam at piggz.co.uk, inksi at fables.co.za
  Target Milestone: ---

SUMMARY

Localized month/day names for input formats, both abbreviated and long, are not
supported by the input masks so should be blocked at startup.

STEPS TO REPRODUCE "input handling for localized month/day names for input
formats"
1. Run KEXI using "LC_TIME=C kexi-3.1"
2. Open create/any document, go to table data view for date or date/time
format.
3. Repeat the step 2 and observations for a form with such date types.

OBSERVED RESULT
Date/time values are like "12 Dec 1992". On editing they have incompatible
input mask, what makes data entry impossible for this format.

EXPECTED RESULT
Date/time values can be still displayed like "12 Dec 1992" but on editing they
have to allow data entry. 
Proposed solution is to replace input format sections as follows (see docs of
QDate::fromString(const QString &string, const QString &format)):

ddd (The abbreviated localized day name (e.g. 'Mon' to 'Sun')) -> d (day
number)
dddd (The long localized day name (e.g. 'Monday' to 'Sunday')) -> d (day
number)
MMM (The abbreviated localized month name (e.g. 'Jan' to 'Dec')) -> M (the
month as a number)
MMMM (The long localized month name (e.g. 'January' to 'December')) -> M (the
month as a number)

SOFTWARE/OS VERSIONS
Any

ADDITIONAL INFORMATION
Output formats can stay as they are.
Order of sections would not be altered.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kexi-bugs mailing list