Skip to content

Commit

Permalink
[BUGFIX] show warning if end time is earlier than start time fixes #685
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Karliczek committed May 23, 2022
1 parent 77bbe92 commit b3f8a6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Classes/Service/TimeTable/TimeTimeTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ protected function validateBaseEntry(array $baseEntry): bool
&& !$baseEntry['all_day'] && !$baseEntry['open_end_time']
&& $baseEntry['start_date']->format('d.m.Y') === $baseEntry['end_date']->format('d.m.Y')
&& $baseEntry['start_time'] % DateTimeUtility::SECONDS_DAY > $baseEntry['end_time'] % DateTimeUtility::SECONDS_DAY
&& $baseEntry['end_time'] > 0
) {
HelperUtility::createTranslatedFlashMessage(
'wrong.time.message',
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<source>Wrong time</source>
</trans-unit>
<trans-unit id="wrong.time.message">
<source>The time of one of the date configurations is wrong. The end time cannot be earlier than the start time!
<source>The time of one of the date configurations is wrong. The end time cannot be earlier than the start time! If the end time is 00:00, then the end date must be at least one day later than the start date.
</source>
</trans-unit>
<trans-unit id="flashMessage.missingStartDate.title" resname="flashMessage.missingStartDate.title">
Expand Down

0 comments on commit b3f8a6d

Please sign in to comment.