summaryrefslogtreecommitdiffabout
path: root/korganizer/koeditorgeneralevent.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koeditorgeneralevent.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeditorgeneralevent.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp
index adc733b..2a49528 100644
--- a/korganizer/koeditorgeneralevent.cpp
+++ b/korganizer/koeditorgeneralevent.cpp
@@ -388,33 +388,33 @@ void KOEditorGeneralEvent::emitDateTimeStr()
QString str = i18n("From: %1 To: %2 %3").arg(from).arg(to)
.arg(mDurationLabel->text());
emit dateTimeStrChanged(str);
}
bool KOEditorGeneralEvent::validateInput()
{
if (!mStartDateEdit->inputIsValid()) {
KMessageBox::sorry( 0,
- i18n("Please specify a valid start date, for example '%1'.")
- .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) );
+ i18n("Please specify a valid start date,\nfor example '%1'.")
+ .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) );
return false;
}
if (!mEndDateEdit->inputIsValid()) {
KMessageBox::sorry( 0,
- i18n("Please specify a valid end date, for example '%1'.")
- .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) );
+ i18n("Please specify a valid end date,\nfor example '%1'.")
+ .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) );
return false;
}
QDateTime startDt,endDt;
startDt.setDate(mStartDateEdit->date());
endDt.setDate(mEndDateEdit->date());
if (!mNoTimeButton->isChecked()) {
startDt.setTime(mStartTimeEdit->getTime());
endDt.setTime(mEndTimeEdit->getTime());
}
if (startDt > endDt) {