Bug 50625 - Unparsable date formats are allowed
Summary: Unparsable date formats are allowed
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Hans Petter Bieker
URL:
Keywords:
: 50626 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-13 00:24 UTC by Aaron J. Seigo
Modified: 2008-06-05 10:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron J. Seigo 2002-11-13 00:24:47 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

By setting the date format to a string that doesn't contain any non-numeric characters (e.g. YYYYMMDD) via the Time & Dates tab of the Country/Region & Language control panel, you will end up with dates that aren't parseable by programs such as Korganizer, since it fails validation in KLocale::readDate(). the year is parsed from the date by a call to readInt, which will continue to read until it hits a non-numeric character, leaving no data for the month or day. and of course dates such as 2002-11-16 won't match the date format set in the locale control panel and so not validate either. this results in problems such as not being able to create TODOs or Appointments in KOrganizer.

either KLocale::readDate should be fixed to parse YYYYMMDD style dates or formats w/out punctuation should not be allowed.
Comment 1 Stephan Binner 2002-11-13 07:57:33 UTC
*** Bug 50626 has been marked as a duplicate of this bug. ***
Comment 2 George Goldberg 2007-12-19 03:34:08 UTC
Is this bug still there in a recent version of KDE, such as 3.5.8 or KDE4.0 RC2?
Comment 3 Florian Reinhard 2008-06-05 10:17:08 UTC
Can't reproduce in 3.5.8 and r815560 (~4.1-beta) -> closing