The custom format option for a date_popup widget field does not deal correctly with formats such as 'M d, Y' which are legal PHP/date formats (cf the help at the bottom of the form) but are not translated correctly into the format for the widget (which cannot handle such). Instead, In the input field I get a date string which looks like Y04Y08Y?.

Possible solution: either

  • make the help at the bottom more verbose "the format string can only contain one separator character in the set [/-. ]", OR
  • Change date_popup_format_to_popup and date_popup_format_to_popup_time to better translate the format strings, and add string post-processing to the popup widget (via onSelect or change action handler).

Configuration:

  • field type: date
  • widget: popup
  • timezone: none
  • multiple: no
  • required: yes

Comments

karens’s picture

Status: Active » Fixed

There a very limited set of formats that will work in the jQuery code used by Date Popup, so we really can't have custom input formats here. The ones that will work correctly should already be listed in the select list. Fix committed to both 5.2 and HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.