Bug 74951 - Date displayed in wrong format
Summary: Date displayed in wrong format
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: 3.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 14:37 UTC by Ian Powell
Modified: 2009-08-05 16:05 UTC (History)
0 users

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 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.