Skip to content
Snippets Groups Projects
Commit d7772008 authored by Peter Thienel's avatar Peter Thienel Committed by Moritz Strohm
Browse files

Resolve "Wiederholungstermine werden am Tag der Sommerzeitumstellung nicht korrekt angezeigt"

Closes #3843

Merge request studip/studip!2710
parent 2a59bf73
No related branches found
No related tags found
No related merge requests found
......@@ -217,6 +217,11 @@ class CalendarDateAssignment extends SimpleORMap implements Event
bool $with_declined = false
) : array
{
// Always use the timezone of the server:
$local_timezone = (new DateTime())->getTimezone();
$begin->setTimezone($local_timezone);
$end->setTimezone($local_timezone);
// one whole day as minimum (begin and end time stamp at the same day)
$begin->modify('midnight');
$end->modify('tomorrow -1 second');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment