You are here

class views_handler_field_datetime in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6

Same name and namespace in other branches
  1. 6.2 handlers/views_handler_field_date.inc \views_handler_field_datetime
  2. 7.2 handlers/views_handler_field_date.inc \views_handler_field_datetime

Views assumes dates are always Unix timestamps, so convert our DATETIME-formatted columns.

Hierarchy

Expanded class hierarchy of views_handler_field_datetime

File

handlers/views_handler_field_date.inc, line 7

View source
class views_handler_field_datetime extends views_handler_field_date {
  function query() {
    $this
      ->ensure_my_table();
    $this->field_alias = $this->query
      ->add_field(NULL, 'UNIX_TIMESTAMP(' . $this->table_alias . '.' . $this->field . ')', $this->table_alias . '_' . $this->field);
  }

}

Members