You are here

function event_where_utc in Event 5.2

Same name in this branch
  1. 5.2 event_database.mysql.inc \event_where_utc()
  2. 5.2 event_database.mysqli.inc \event_where_utc()
  3. 5.2 event_database.pgsql.inc \event_where_utc()

Parameters

$type either 'start' or 'end':

See also

event_where

Related topics

File

./event_database.mysql.inc, line 145

Code

function event_where_utc($type = 'start') {
  global $user;
  switch ($type) {
    case 'end':
    case 'start':
      return "(e.event_{$type} - INTERVAL IF(tz.is_dst, tz.offset_dst, tz.offset) HOUR_SECOND)";
  }
}