Active
Project:
Content Distribution
Version:
6.x-2.0-beta6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2012 at 20:00 UTC
Updated:
12 Apr 2012 at 20:00 UTC
When editing a node that has a published date of last year, I get an illegal choice error because the published_date field #date_year_range is set to '0:+2' ... 2011 dates are not included in the options.
This setting has existed since at least version 1.2, so I'm wondering if I'm just not understanding something here.
$form['date']['published_date'] = array(
'#type' => 'date_select',
'#default_value' => $published_date,
'#date_format' => $format,
'#date_timezone' => $local_timezone,
'#date_year_range' => '0:+2',
'#date_increment' => 5,
);Any advice would be appreciated.