I have the date module installed, along with the head revision of JSTools.

I've created a date field (text with JSCalendar popup). When configuring the field, I leave everything default and select (Year, Month, Day) as the Granularity and then enter "d/m/Y" in the custom input format field.

I save the field but the custom input format is not saved. Editing the field again, the custom input format field is empty.

Comments

karens’s picture

Status: Active » Fixed

Fixed in latest commit. Sorry about that!

Anonymous’s picture

Status: Fixed » Closed (fixed)
jasonwhat’s picture

Status: Closed (fixed) » Active

I'm still having this problem. I've tried both the CVS version and the latest version and nothing seems to get saved or displayed.

tema’s picture

+1

Error message: "Open is not a valid date." (I've trying to fill this date field manually in different formats: the same result).

My content type:

$content[type]  = array (
  'name' => 'Concert',
  'type' => 'concert',
  'description' => '',
  'title_label' => 'Announcement',
  'body_label' => 'Description',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => false,
    'sticky' => false,
    'revision' => false,
  ),
  'old_type' => 'concert',
  'orig_type' => '',
  'module' => 'node',
  'custom' => '1',
  'modified' => '1',
  'locked' => '0',
);
$content[fields]  = array (
  0 => 
  array (
    'widget_type' => 'date_js',
    'label' => 'Open',
    'weight' => '-4',
    'description' => '',
    'required' => '1',
    'multiple' => '0',
    'granularity' => 
    array (
      'Y' => 'Y',
      'M' => 'M',
      'D' => 'D',
      'H' => 'H',
      'N' => 'N',
    ),
    'todate' => '',
    'input_format' => 'd.m.Y - H:i:s',
    'input_format_custom' => '',
    'output_format_date' => 'd.m.Y - H:i',
    'output_format_zone' => '',
    'output_format_custom' => '',
    'output_format_date_long' => 'd.m.Y - H:i',
    'output_format_zone_long' => '',
    'output_format_custom_long' => '',
    'output_format_date_medium' => 'd.m.Y - H:i',
    'output_format_zone_medium' => '',
    'output_format_custom_medium' => '',
    'output_format_date_short' => 'd.m.Y - H:i',
    'output_format_zone_short' => '',
    'output_format_custom_short' => '',
    'tz_handling' => 'none',
    'field_timezone' => 'Europe/Moscow',
    'field_name' => 'field_open',
    'field_type' => 'datestamp',
    'module' => 'date',
  ),
);
karens’s picture

Status: Active » Fixed

I can't replicate this in the latest code, so I think it has been fixed since this was reported. If you still see it in the latest snapshot version, you can reopen the issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)
fletch11’s picture

Sorry to open this again but it still seems that custom date formats are not registering with the date module. I am using the latest 6.x-2.x-dev version. Any thoughts on this?

thank you