Skip to content
Snippets Groups Projects
Commit 1952cd5f 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


(cherry picked from commit d7772008)

d23fe92f use always the server's timezone, re #3843
89c241db fixed error in comment
parent 2a408b5c
No related branches found
No related tags found
No related merge requests found
...@@ -217,6 +217,11 @@ class CalendarDateAssignment extends SimpleORMap implements Event ...@@ -217,6 +217,11 @@ class CalendarDateAssignment extends SimpleORMap implements Event
bool $with_declined = false bool $with_declined = false
) : array ) : 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) // one whole day as minimum (begin and end time stamp at the same day)
$begin->modify('midnight'); $begin->modify('midnight');
$end->modify('tomorrow -1 second'); $end->modify('tomorrow -1 second');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment