Avoid notices whwn creating events

This commit is contained in:
Michael 2021-04-11 06:53:01 +00:00
commit 5b2c4d70be
2 changed files with 3 additions and 4 deletions

View file

@ -489,7 +489,7 @@ function events_content(App $a)
$fdt = $orig_event['finish'] ?? 'now';
$tz = date_default_timezone_get();
if (!empty($orig_event)) {
if (isset($orig_event['adjust'])) {
$tz = ($orig_event['adjust'] ? date_default_timezone_get() : 'UTC');
}