Bug 440729

Summary: KDatePicker does not support 4 digit year entry in its lineedit
Product: [Frameworks and Libraries] frameworks-kwidgetsaddons Reporter: Thomas Baumgart <tbaumgart>
Component: generalAssignee: Christoph Feck <cfeck>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs, kloecker, p.r.worrall, tbaumgart
Priority: NOR    
Version: 5.84.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.98
Sentry Crash Report:

Description Thomas Baumgart 2021-08-08 09:30:51 UTC
SUMMARY
Entering a date with a 4 digit year is not supported.

STEPS TO REPRODUCE
1. Create a widget with a KDateComboBox widget in Qt designer
2. Test run the widget
3. Open the date picker
4. Enter the year of next year using 4 digits, e.g. 08.08.2022
5. Press return

OBSERVED RESULT
a. The date is shown with 4 digit year info in the KDateComboBox widget in step 2
   (08.08.2021 which is expected for today)
b. The date is represented with 2 digit year info in the line edit of the date picker in step 3
   (08.08.21)
c. Upon pressing return in step 5 nothing happens
d. Entering the date using 2 digit years as 08.08.22 and pressing return closes the date picker as expected but shows 08.08.1922 in the KDateComboBox widget

EXPECTED RESULT
KDatePicker's lineedit allows to enter dates using 4 digits.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE 15.2 stock
(available in About System)
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7

ADDITIONAL INFORMATION
Examples here are based on German date format.
Using the calendar widget of the picker does not show this problem.
Comment 1 Thomas Baumgart 2022-09-04 12:53:53 UTC
Apparently, this got fixed with https://invent.kde.org/frameworks/kwidgetsaddons/-/merge_requests/128  Can someone add the version it will be fixed in and close it as fixed?