Closed (fixed)
Project:
Date
Version:
5.x-2.0-rc
Component:
Date API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 May 2008 at 00:46 UTC
Updated:
4 Nov 2008 at 14:19 UTC
I'm looking at date_api_ical_build_rrule() and wondering if in this:
if ($form_values['UNTIL']['datetime']) {
$RRULE .= ';UNTIL='. date_convert($form_values['UNTIL']['datetime'], DATE_DATETIME, DATE_ICAL);
}
Should DATE_DATETIME be DATE_ARRAY ? Because I'm getting an array in $form_values['UNTIL']['datetime'] ...
Or am I doing something wrong? Is there any documentation for how to properly use the date_repeat_rrule element in modules? I've just been trying to figure it out by looking at the code, and it's proving difficult.
My Form looks like this:
$form['testdate']['thedate'] = array(
'#type' => 'date_select',
'#date_format' => 'm/d/Y',
'#title' => t('Start Date'),
'#default_value' => '2008-02-02 02:02:02',
'#tree' => TRUE,
);
$form['testdate']['rrule'] = array(
'#type' => 'date_repeat_rrule',
'#title' => t('Date Repeat Pattern'),
'#default_value' => variable_get('rrule', ''),
'#tree' => TRUE,
);
$form['array_filter'] = array('#type' => 'hidden');
return system_settings_form($form);
Comments
Comment #1
matt2000 commentedThis was actually caused in part by a mistake in some troubleshooting code I added.
The generalized problem is here: http://drupal.org/node/256046
Comment #2
karens commentedIs there still an issue here? The linked issue is closed now and I can't figure out exactly what the question is.
Comment #3
karens commentedNo response, assuming fixed.