I'm not sure if this is a bug in the Devel module or the Date module... Anyway, here goes:

If I enable the Devel -> Theme Developer module, then all dates are shown as ranges, even those consisting of only a single date. This happens because this test fails: (line 131, date/date.theme):

// From and To dates match or there is no To date, display a complete single date.
elseif ($date1 == $date2 || empty($date2)) {
  $output .= theme('date_display_single', $date1, $timezone);
}

At this point, the $dateX variables have been themed, and the devel module has added some extra stuff, so that $date1 != $date2. Shouldn't the comparison be between the unthemed date values?

/Dag

Comments

arlinsandbulte’s picture