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 2004

According to the advanced help from the date-module this should be configurable, but I couldn't find those settings.

Thank you for any help.

Comments

dreich77’s picture

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?

fago’s picture

Project: Content Profile » Date
Version: 6.x-1.0-beta3 » 6.x-2.x-dev
Component: Base module » Code

I assume this is a bug of the date module.

LinL’s picture

Status: Active » Closed (duplicate)