In the them/theme.inc file there is the function called : theme_date_part_label_ampm.

This function outputs a single whitespace as the label.

Doing this can lead to an invalid block structure depending on the themes used.

What happens is that a lot of webbrowsers will ignore the single space and make the label function the same as a the CSS code: 'display: none;' would.

On the node-edit form the following happens:

Date of Meeting
Day            Hour           Minute              [ Select ampm ] 
[ Select Day ] [ Select Hour ] [ Select Minute ] 

What should happen:

Date of Meeting
Day            Hour            Minute         
[ Select Day ] [ Select Hour ] [ Select Minute ]  [ Select ampm ] 

I have observed this problem in firefox, opera, and google chrome.

Instead of using a whitespace, use an explicit html non-breaking space ' '

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.