function views_handler_filter_ad_statistics_date::op_simple in Advertisement 6.2
File
- views/
handlers/ views_handler_filter_ad_statistics_date.inc, line 14
Class
- views_handler_filter_ad_statistics_date
- Filter to handle ad statistic dates stored as an integer (not a unix timestamp).
Code
function op_simple($field) {
$field = "UNIX_TIMESTAMP( STR_TO_DATE( CONVERT({$field}, CHAR), '%Y%m%%d%H') )";
parent::op_simple($field);
}