Skip to content
Snippets Groups Projects
Commit d23fe92f authored by Peter Thienel's avatar Peter Thienel
Browse files

use always the server's timezone, re #3843

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
{
// use always the server's timezone
$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.
Please register or to comment