Fix Undefined index: timezone in Protocol\Diaspora

This commit is contained in:
Hypolite Petovan 2018-10-16 18:29:08 -04:00
parent 2b1d15de87
commit cb854b8b10

View File

@ -3430,12 +3430,9 @@ class Diaspora
/// @todo - establish "all day" events in Friendica /// @todo - establish "all day" events in Friendica
$eventdata["all_day"] = "false"; $eventdata["all_day"] = "false";
if (!$event['adjust']) { $eventdata['timezone'] = 'UTC';
if (!$event['adjust'] && $user['timezone']) {
$eventdata['timezone'] = $user['timezone']; $eventdata['timezone'] = $user['timezone'];
if ($eventdata['timezone'] == "") {
$eventdata['timezone'] = 'UTC';
}
} }
if ($event['start']) { if ($event['start']) {