]> Git trees. - libqmvoc.git/commitdiff
Update ExtDatePicker to use the new KDE-like date format strings. One
authorJason Harris <kstars@30doradus.org>
Mon, 20 Sep 2004 05:53:07 +0000 (05:53 +0000)
committerJason Harris <kstars@30doradus.org>
Mon, 20 Sep 2004 05:53:07 +0000 (05:53 +0000)
problem:  KGlobal::locale()->dateFormatShort() uses a 2-digit year,
which is especially ambiguous considering the huge range of dates
accessible with ExtDate.

CCMAIL: kstars-devel@kde.org

svn path=/trunk/kdeedu/libkdeedu/; revision=347761

extdate/extdatepicker.cpp

index 01dd6c6919b40b89954d18264826b62ee2a74f10..78e5f0d24ff32817e44ad9cfb41ae148ae3617b4 100644 (file)
@@ -241,7 +241,7 @@ ExtDatePicker::dateChangedSlot(const ExtDate &date)
 //    const ExtCalendarSystem * calendar = KGlobal::locale()->calendar();
 
 //    line->setText(KGlobal::locale()->formatDate(date, true));
-    line->setText( date.toString("MM/dd/yyyy") );
+               line->setText( date.toString( KGlobal::locale()->dateFormatShort() ) );
     selectMonth->setText(d->calendar->monthName(date, false));
     fillWeeksCombo(date);