summaryrefslogtreecommitdiffabout
path: root/libkcal/incidencebase.cpp
Side-by-side diff
Diffstat (limited to 'libkcal/incidencebase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/incidencebase.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}