Bug 402963

Summary: Fix handling copying dates with month/day numbers smaller than 10
Product: [Applications] KEXI Reporter: Jarosław Staniek <staniek>
Component: TablesAssignee: Kexi Bugs <kexi-bugs>
Status: REPORTED ---    
Severity: normal CC: adam, inksi
Priority: NOR    
Version: 3.1.0   
Target Milestone: 3.2.1   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In:
Attachments: Display format
Input format
Test db

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