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.pgsql.inc, line 145

Code

function event_where_utc($type = 'start') {
  global $user;
  switch ($type) {
    case 'end':
    case 'start':
      return "(e.event_{$type} - CASE WHEN tz.is_dst = 1 THEN tz.offset_dst ELSE tz.offset END)";
  }
}