function date_sql_handler::construct in Date 5.2
Same name and namespace in other branches
- 6.2 date_api_sql.inc \date_sql_handler::construct()
- 6 date_api_sql.inc \date_sql_handler::construct()
- 7 date_api/date_api_sql.inc \date_sql_handler::construct()
File
- ./
date_api_sql.inc, line 48
Class
- date_sql_handler
- A class to manipulate date SQL.
Code
function construct($date_type = DATE_DATETIME, $local_timezone = NULL) {
$this->db_type = $GLOBALS['db_type'];
$this->date_type = $date_type;
$this->db_timezone = 'UTC';
$this->local_timezone = isset($local_timezone) ? $local_timezone : date_default_timezone_name();
if (isset($this->definition['content_field'])) {
$this->date_handler->date_type = $this->definition['content_field']['type'];
}
date_api_set_db_timezone();
}