In the administration menu, you can choose if the user can set the timezone and if the event is displayed with its timezone or with the user timezone. However, when you choose to let user decide timezone, and leave the event timezone below, the event shows in the site timezone.

You need to hack your views so they display the proper timezone and its boring. Here's a bit of code to fix a block I've made (obviously, this is a theme template wizard function, the interesting part of this code starts at $start_offset=event_get_offset...):
/**
* This function goes in your template.php file
*/
define('EVENT_TIMEZONES', EVENT_PATH. '/event_timezones.inc');
include_once(EVENT_TIMEZONES);

function phptemplate_views_view_list_NAME_OF_YOUR_VIEW($view, $nodes, $type) {
$fields = _views_get_fields();
$taken = array();

// Set up the fields in nicely named chunks.
foreach ($view->field as $id => $field) {
$field_name = $field['field'];
if (isset($taken[$field_name])) {
$field_name = $field['queryname'];
}
$taken[$field_name] = true;
$field_names[$id] = $field_name;
}

// Set up some variables that won't change.
$base_vars = array(
'view' => $view,
'view_type' => $type,
);

foreach ($nodes as $i => $node) {
$vars = $base_vars;
$vars['node'] = $node;
$vars['count'] = $i;
$vars['stripe'] = $i % 2 ? 'even' : 'odd';
foreach ($view->field as $id => $field) {
$name = $field_names[$id];
$vars[$name] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node, $view);

if (isset($field['label'])) {
$vars[$name . '_label'] = $field['label'];
}
$start_offset = event_get_offset($node->event_timezone, $node->event_event_start);
$end_offset = event_get_offset($node->event_timezone, $node->event_event_end);
$vars['event_start'] = format_date($node->event_event_start, "custom", "M j, Y \@ g:ia", $start_offset);
$vars['event_end'] = format_date($node->event_event_end, "custom", "M j, Y \@ g:ia", $end_offset);
}
$items[] = _phptemplate_callback('views-list-event_list', $vars);
}
if ($items) {
return theme('item_list', $items);
}
}

Comments

japerry’s picture

Status: Needs review » Closed (outdated)

Event for Drupal 8 is unrelated to older versions. If an issue similar to this one exists, please open a new issue with the 8.x branch.