Bug 74951

Summary: Date displayed in wrong format
Product: kab3 Reporter: Ian Powell <ianseeks>
Component: generalAssignee: Tobias Koenig <tokoe>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: 3.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ian Powell 2004-02-11 14:37:48 UTC
Version:           3.2 (using KDE 3.2.0 RC1, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.21-166-athlon

Birthday dates:

Enter date via the pop-up calender. Save contact.

Now the view of all contacts displays the birthday date in YYYY-MM-DD instead of DD-MM-YYYY

Can this be made configurable or at least changed to use the format defined in Control Centre?

Keep up the great work - Kontact and its parts are great.
Comment 1 Tobias Koenig 2004-02-11 15:23:13 UTC
CVS commit by tokoe: 

Show birthday in local date/time format.

CCMAIL:74951-done@bugs.kde.org


  M +8 -1      contactlistview.cpp   1.6


--- kdepim/kaddressbook/views/contactlistview.cpp  #1.5:1.6
@@ -201,4 +201,11 @@ void ContactListViewItem::refresh()
   KABC::Field::List::ConstIterator it;
   for( it = mFields.begin(); it != mFields.end(); ++it ) {
+    if ( (*it)->label() == KABC::Addressee::birthdayLabel() ) {
+      QDate date = mAddressee.birthday().date();
+      if ( date.isValid() )
+        setText( i++, KGlobal::locale()->formatDate( date, true ) );
+      else
+        setText( i++, "" );
+    } else
     setText( i++, (*it)->value( mAddressee ) );
   }


Comment 2 Tobias Koenig 2009-08-05 16:05:07 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.