From aae8af24992bf3b7b59fb425955153b86f31bb5d Mon Sep 17 00:00:00 2001 From: ulf69 Date: Fri, 09 Jul 2004 08:12:00 +0000 Subject: IntDateFormat is now an enum instead of an ionteger value --- (limited to 'kabc/field.cpp') diff --git a/kabc/field.cpp b/kabc/field.cpp index bc2e176..e27970e 100644 --- a/kabc/field.cpp +++ b/kabc/field.cpp @@ -261,10 +261,10 @@ QString Field::value( const KABC::Addressee &a ) if ( a.birthday().isValid() ) { //the generated code had the following format: return a.birthday().date().toString( Qt::ISODate ); // But Qt::IsoDate was not specified. - QString _oldFormat = KGlobal::locale()->dateFormat(); - KGlobal::locale()->setDateFormat("%Y-%m-%d"); // = Qt::ISODate - QString dt = KGlobal::locale()->formatDate(a.birthday().date(), false); - KGlobal::locale()->setDateFormat(_oldFormat); +// QString _oldFormat = KGlobal::locale()->dateFormat(); +// KGlobal::locale()->setDateFormat("%Y-%m-%d"); // = Qt::ISODate + QString dt = KGlobal::locale()->formatDate(a.birthday().date(), false, KLocale::ISODate); +// KGlobal::locale()->setDateFormat(_oldFormat); return dt; } else -- cgit v0.9.0.2