CodeExplorer getTimezoneOffset example
public function aggregationMethodDistinct($group_type,
$field) { $group_type =
str_replace('_distinct', '',
$group_type);
return strtoupper($group_type) . '(DISTINCT ' .
$field . ')';
} /**
* {@inheritdoc}
*/
public function getDateField($field,
$string_date = FALSE,
$calculate_offset = TRUE
) { $field =
$this->dateSql->
getDateField($field,
$string_date);
if ($calculate_offset &&
$offset =
$this->
getTimezoneOffset()) { $this->
setFieldTimezoneOffset($field,
$offset);
} return $field;
} /**
* {@inheritdoc}
*/
public function setFieldTimezoneOffset(&
$field,
$offset) { $this->dateSql->
setFieldTimezoneOffset($field,
$offset);
}