-rw-r--r-- | libkcal/incidencebase.cpp | 2 | ||||
-rw-r--r-- | libkcal/todo.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 1e99082..b5fe2e6 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -204,6 +204,8 @@ QString IncidenceBase::dtStartDateStr(bool shortfmt) const QString IncidenceBase::dtStartStr(bool shortfmt) const { + 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,6 +191,8 @@ QString Todo::dtDueDateStr(bool shortfmt) const QString Todo::dtDueStr(bool shortfmt) const { + if ( doesFloat() ) + return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); return KGlobal::locale()->formatDateTime(mDtDue, shortfmt); } // retval 0 : no found |