diff --git a/include/event.php b/include/event.php index bcde5e6a4..c9d4a79d5 100644 --- a/include/event.php +++ b/include/event.php @@ -162,7 +162,7 @@ function format_event_obj($jobject) { '$dtend_dt' => $dtend_dt, '$allday' => $allday, '$oneday' => $oneday, - '$tz' => ['label' => t('Timezone'), 'value' => (($tz === date_default_timezone_get()) ? '' : date_default_timezone_get())] + '$tz' => ['label' => t('Timezone'), 'value' => (($tz && $tz !== date_default_timezone_get()) ? date_default_timezone_get() : '')] )); $event['content'] = replace_macros(get_markup_template('event_item_content.tpl'), array(