You are here

function date_api_set_db_timezone in Date 6

Same name and namespace in other branches
  1. 5.2 date_api.module \date_api_set_db_timezone()
  2. 6.2 date_api.module \date_api_set_db_timezone()
  3. 7 date_api/date_api.module \date_api_set_db_timezone()

Wrapper around date handler setting for timezone.

2 calls to date_api_set_db_timezone()
date_sql_handler::construct in ./date_api_sql.inc
date_sql_handler::db_tz_support in ./date_api_sql.inc
See if the db has timezone name support.

File

./date_api.module, line 1357
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_api_set_db_timezone($offset = '+00:00') {
  include_once drupal_get_path('module', 'date_api') . '/date_api_sql.inc';
  $handler = new date_sql_handler();
  return $handler
    ->set_db_timezone($offset);
}