Skip to content
Snippets Groups Projects

Timestamp field should use date filter plugin rather than numeric filter plugin

Open Justin Phelan requested to merge issue/drupal-3204558:3204558-timestamp-field-type into 11.x
@@ -380,12 +380,17 @@ function views_field_default_views_data(FieldStorageConfigInterface $field_stora
case 'serial':
case 'numeric':
case 'float':
$filter = 'numeric';
$argument = 'numeric';
$sort = 'standard';
if ($field_storage->getType() == 'boolean') {
$filter = 'boolean';
}
elseif ($field_storage->getType() == 'timestamp') {
$filter = 'date';
}
else {
$filter = 'numeric';
}
$argument = 'numeric';
$sort = 'standard';
break;
case 'blob':
Loading