Summary: | Short Year (YY) doesn't work in date format. | ||
---|---|---|---|
Product: | [Unmaintained] kcontrol | Reporter: | Darrell Esau <desau> |
Component: | kcmlocale | Assignee: | Hans Petter Bieker <bieker> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bda |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Darrell Esau
2004-01-28 17:39:39 UTC
Same problem with: Version: KDE 3.2.0 Installed from: source Compiler: gcc 3.3.2 OS: Solaris 8 CVS commit by coolo: fix support for YY aka %y CCMAIL: 73693-done@bugs.kde.org M +2 -2 kcalendarsystem.cpp 1.4.2.1 --- kdelibs/kdecore/kcalendarsystem.cpp #1.4:1.4.2.1 @@ -79,6 +79,6 @@ QString KCalendarSystem::yearString(cons sResult.setNum(year(pDate)); - if (!bShort && sResult.length() == 1 ) - sResult.prepend('0'); + if (bShort && sResult.length() == 4 ) + sResult = sResult.right(2); return sResult; It works fine. Thank you. |