From 668f49ee87c1b3b51e103ed8bb570a035c96b546 Mon Sep 17 00:00:00 2001 From: zautrix Date: Mon, 07 Mar 2005 18:08:51 +0000 Subject: start datetime fix for float --- diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 1e99082..b5fe2e6 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -204,7 +204,9 @@ QString IncidenceBase::dtStartDateStr(bool shortfmt) const QString IncidenceBase::dtStartStr(bool shortfmt) const { - return KGlobal::locale()->formatDateTime(dtStart(), shortfmt); + if ( doesFloat() ) + return KGlobal::locale()->formatDate(dtStart().date(),shortfmt); + return KGlobal::locale()->formatDateTime(dtStart(), shortfmt); } diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 39d16b6..a496404 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp @@ -191,7 +191,9 @@ QString Todo::dtDueDateStr(bool shortfmt) const QString Todo::dtDueStr(bool shortfmt) const { - return KGlobal::locale()->formatDateTime(mDtDue, shortfmt); + if ( doesFloat() ) + return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); + return KGlobal::locale()->formatDateTime(mDtDue, shortfmt); } // retval 0 : no found // 1 : due for date found -- cgit v0.9.0.2