Renders CCK-date-fields with To date even though none is given
guidot - June 6, 2009 - 00:58
| Project: | Date |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
| Issue tags: | theming |
Jump to:
Description
I have set up two date-fields (6.x-2.2) in a content-profile, both set to have the "Default value for To date" set to Blank and "To date" set to Never. The content_type_profile-table correctly contains only one column for each date. But the user's profile pages show date fields with To dates, set to the same value as the given (From) date. For example:
Birthday: Friday, 17. September 1965 - Friday, 17. September 1965
Member since: Thursday, 1. January 2004 - Thursday, 1. January 2004According to the advanced help from the date-module this should be configurable, but I couldn't find those settings.
Thank you for any help.

#1
I have the same problem.
Core version: 6.12
Date module version: 6.x-2.2
It seems that the problem is in theme_date_display_combination() in /modules/date/date/date.theme.
There is a comparison:
elseif ($date1 == $date2 || empty($date2)) {$output .= theme('date_display_single', $date1, $timezone);
}
But $date1 and $date2 contain "formatted" dates with <span> tags, but in tags classes are different, for that the comparison is always false.
Am I on the right way?
#2
I assume this is a bug of the date module.
#3
This looks like it is related to #523218: Default value for To date: Blank should stay blank