You are here

function event_check_dst in Event 5.2

Get DST and TZ induced offset of event

Parameters

$event event array part of a node object:

$time time:

Return value

the offset

Related topics

1 call to event_check_dst()
event_dst in ./event.module
Display a page with the timezone and daylight savings time regions.

File

./event.module, line 2437

Code

function event_check_dst($event, $time) {
  if ($event->event['dst_region']) {

    // zone is a region which obeys dst, return correct offset
    return event_is_dst($event) ? $event->event['offset_dst'] : $event->event['offset'];
  }
  else {

    // no dst offset for this region
    return $event->event['offset'];
  }
}