Bug 402963 - Fix handling copying dates with month/day numbers smaller than 10
Summary: Fix handling copying dates with month/day numbers smaller than 10
Status: REPORTED
Alias: None
Product: KEXI
Classification: Applications
Component: Tables (show other bugs)
Version: 3.1.0
Platform: Other All
: NOR normal
Target Milestone: 3.2.1
Assignee: Kexi Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-07 09:21 UTC by Jarosław Staniek
Modified: 2019-01-07 09:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Display format (1.50 KB, image/png)
2019-01-07 09:31 UTC, Jarosław Staniek
Details
Input format (12.05 KB, image/png)
2019-01-07 09:31 UTC, Jarosław Staniek
Details
Test db (36.00 KB, application/x-kexiproject-sqlite2)
2019-01-07 09:34 UTC, Jarosław Staniek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jarosław Staniek 2019-01-07 09:21:23 UTC
Dates with month/day number smaller than 10 are invalid when copied to clipboard.

STEPS TO REPRODUCE "Input handling for numbers smaller than 10 in dates"
1. Run KEXI using "LC_TIME=en_US kexi-3.1"
2. Open create/any document, go to table data view for date or date/time format.
3. Enter date such as 1/1/2012 (or 1/1/12 if year format is two-digit in your KEXI). Accept changes and start editing again, select all characters in the field by pressing Ctrl+A, copy contents, paste somewhere in a text editor outside of KEXI.
4. Repeat the steps 2-3 and observations for a form with such date types.

OBSERVED RESULT
Date displayed as 1/1/12 has day and month input mask with two digits. So on editing it is displayed as 1_/1_/12. 
This is correct but data copied to the clipboard should not include the "_" place holders. 

EXPECTED RESULT
Instead 1/1/12 sould be copied, matching the display format.

SOFTWARE/OS VERSIONS
Any

ADDITIONAL INFORMATION
Order of sections would not be altered.
Comment 1 Jarosław Staniek 2019-01-07 09:31:14 UTC
Created attachment 117315 [details]
Display format
Comment 2 Jarosław Staniek 2019-01-07 09:31:36 UTC
Created attachment 117316 [details]
Input format
Comment 3 Jarosław Staniek 2019-01-07 09:34:14 UTC
Created attachment 117318 [details]
Test db