diff --git a/includes/views_date_format_sql_handler_date_field.inc b/includes/views_date_format_sql_handler_date_field.inc index ce1472d..b5b178f 100644 --- a/includes/views_date_format_sql_handler_date_field.inc +++ b/includes/views_date_format_sql_handler_date_field.inc @@ -35,10 +35,9 @@ class views_date_format_sql_handler_date_field extends views_handler_field_field } $format_string = _views_date_format_sql_get_date_format($this->options['settings']['format_type']); - $field_type = ($this->field_info['type'] == 'datestamp') ? 'int' : $this->field_info['type']; // If this is a date module filed we have to get the storage field type. - $formula = views_date_sql_format($format_string, "$this->table_alias.$this->real_field", $field_type); + $formula = views_date_sql_format($format_string, "$this->table_alias.$this->real_field", $this->field_info['type']); $this->query->fields[$this->aliases[$this->real_field]]['field'] = $formula; $this->query->fields[$this->aliases[$this->real_field]]['table'] = NULL; }