From 743441d59fc5c6e620fdea8a17ed699d2684da4a Mon Sep 17 00:00:00 2001 From: Shawn Price Date: Wed, 6 Oct 2010 16:32:31 -0700 Subject: [PATCH] By rmarino: c.o.c #2362 comment #9 fix date issue introduced with new version of prepopulate module --- litecal.theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecal.theme.inc b/litecal.theme.inc index 587ab3b..b113e79 100644 --- a/litecal.theme.inc +++ b/litecal.theme.inc @@ -93,7 +93,7 @@ function theme_litecal_timeslot($timespan, $start, $date, $format, $quickadd = a $type = str_replace('_', '-', $quickadd['type']); $item = menu_get_item("node/add/{$type}"); if ($item && $item['access']) { - $options = array('query' => "edit[{$quickadd['field']}][0][value]=". date_convert($date, DATE_OBJECT, DATE_ISO) ."&destination=" . $_GET['q']); + $options = array('query' => "edit[{$quickadd['field']}][0][value][date]=". date_format_date($date, 'custom', 'm/d/Y') ."&destination=" . $_GET['q']); $link_attr['href'] = url("node/add/{$type}", $options); $add = "". t('+ Add') .""; }