function date_api_set_db_timezone in Date 7
Same name and namespace in other branches
- 5.2 date_api.module \date_api_set_db_timezone()
- 6.2 date_api.module \date_api_set_db_timezone()
- 6 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/
date_api_sql.inc - date_sql_handler::db_tz_support in date_api/
date_api_sql.inc - See if the db has timezone name support.
File
- date_api/
date_api.module, line 1768 - 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') {
module_load_include('inc', 'date_api', 'date_api_sql');
$handler = new date_sql_handler();
return $handler
->set_db_timezone($offset);
}