Closed (won't fix)
Project:
Event
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2007 at 23:30 UTC
Updated:
31 Jan 2013 at 12:36 UTC
not sure if this is supposed to be in event views or here, but i've got a problem with the upcoming events block, which i've configured as such to display the date of an upcoming event, rather than the time left; however, as i am in new zealand (+1300 hours) the timezone seems to be a point of contention - events that start before 1pm (i.e. the 13th hour of the day) are noted as starting on the previous day on the main page. All details on the events themselves are fine, i just don't know how to configure the block output to take the timezone in to account in the date display.
/**
* Format an individual upcoming event block item
*
* @param node
* The node to render as an upcoming event
*/
function theme_event_upcoming_item($node) {
$output = l($node->title, "node/$node->nid", array('title' => $node->title));
// if ((event_get_types('all') + event_get_types('solo')) > 1) {
// $output .= '<span class="event-nodetype">'. t("($node->typename)") .'</span>';
// }
$output .= '<span class="event-timeleft">('. gmdate('D, F j, Y', $node->event_start) .')</span>';
return $output;
}
Comments
Comment #1
fraew commentedgot it to work with the following code (thanks to another issue about displaying the date; just revised my own code to a similar format). Still, i'd love to know how to group by the timezoned date
Comment #2
simon georges commentedThis version of Event is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.