I have a custom date format defined (via code), and this is what I see in the administration pages:
Custom Date Formats (png screenshot)
In views, I've attached a field, and trying to use a formatter, but they're all showing up like this:
Views Date Format (png screenshot)
I can't seem to select my m/d/y feature, and even the default (short, medium and long) are strange. I have tried clearing caches, and the usual. The view is being exported with a feature, and I have not tried recreating it, yet. Any ideas?
Here's the code generating the custom date format:
/**
* Implements hook_date_formats().
*/
function custom_date_formats()
{
$formats = array();
$formats[] = array(
'type' => 'm_d_y',
'format' => 'm/d/Y',
'locales' => array(),
);
return $formats;
}
/**
* Implements hook_date_format_types().
*/
function custom_date_format_types()
{
return array(
'm_d_y' => t('m/d/Y'),
);
}