Commit 7e0e6691 authored by Volker Krause's avatar Volker Krause
Browse files

Better end time default for restaurant reservations without an end time

CCBUG: 404451
parent 0f8b2bab
......@@ -379,7 +379,7 @@ static void fillFoodReservation(const FoodEstablishmentReservation &reservation,
event->setDtStart(reservation.startTime());
auto endTime = reservation.endTime();
if (!endTime.isValid()) {
endTime = QDateTime(reservation.startTime().date(), QTime(23, 59, 59));
endTime = reservation.startTime().addSecs(7200); // if we have no end time, let's assume 2h
}
event->setDtEnd(endTime);
event->setAllDay(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment