From 603ad0a623dc72b8ccb9535f9907e0f2aa536328 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 17 Sep 2004 13:25:15 +0000 Subject: Fixed time settings bug --- (limited to 'kmicromail/libmailwrapper/genericwrapper.cpp') diff --git a/kmicromail/libmailwrapper/genericwrapper.cpp b/kmicromail/libmailwrapper/genericwrapper.cpp index d99c6a3..09a6447 100644 --- a/kmicromail/libmailwrapper/genericwrapper.cpp +++ b/kmicromail/libmailwrapper/genericwrapper.cpp @@ -35,7 +35,7 @@ const QDateTime Genericwrapper::parseDateTime( mailimf_date_time *date ) kon.setGroup("Locale"); KGlobal::locale()->setIntDateFormat( (KLocale::IntDateFormat)kon.readNumEntry( "PreferredDate",0) ); QString dummy = kon.readEntry( "UserDateFormatShort","%aK %d.%m.%y" );// kon.readEntry( ""); - KGlobal::locale()->setHore24Format( !kon.readBoolEntry( "PreferredTime",0 ) ); + KGlobal::locale()->setHore24Format( !kon.readNumEntry( "PreferredTime",0 ) ); KGlobal::locale()->setDateFormatShort(dummy.replace( QRegExp("K"), QString(",") )); dummy = kon.readEntry( "UserDateFormatLong","%A %d %b %y" ); KGlobal::locale()->setDateFormat(dummy.replace( QRegExp("K"), QString(",") )); -- cgit v0.9.0.2