Skip to content

Commit

Permalink
Fixed 0038818: Failed test: iCal-Link prüfen
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer-ilias committed Dec 18, 2023
1 parent 8fdf847 commit 611dd85
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ protected function addCategories(int $remaining_bytes): ilICalWriter
$time_now = new ilDateTime(time(), IL_CAL_UNIX);
$str_time_now = $time_now->get(IL_CAL_FKT_DATE, 'Ymd', ilTimeZone::UTC);
$str_time_start = $a->getStart()->get(IL_CAL_FKT_DATE, 'Ymd', $this->il_user->getTimeZone());
if ($str_time_start === null) {
return false;
}
$start = new DateTimeImmutable($str_time_start);
$now = new DateTimeImmutable($str_time_now);
$lower_bound = $now->sub(new DateInterval('P30D'));
Expand Down

0 comments on commit 611dd85

Please sign in to comment.