When using the latest versions of the Date module (cvs, 2-July-2006), the Views module (cvs, 26-June-2006), and CCK (cvs, 12-June-2006) date fields do not appear in views. I've tried several view layouts. In all of them the label I specify for the date in the view appears, but there is no value for the date in any of the records.

I've contacted KarenS and she is still concentrating on getting the core date module working 100%. She indicated I should create this issue.

Time permitting, I will attempt to dig into the code of Date and Views and see where things went wrong when Views was recently changed. If I find it before KarenS gets a chance to look at it I'll post a patch.

Comments

tmp’s picture

I can confirm this. Same situation with me.

RayZ’s picture

Seems it works fine for Teaser List and Full Nodes, but not List View or Table View.

KarenS’s picture

OK, I can replicate this now. I'll try to figure out what's wrong...

KarenS’s picture

Well, I figured it out right away. It looks like the current cck implementation will pass no information from the widget back to the function that views uses to display the field, and the formatting of the date was set up in the widget. No format for the date means the date won't display.

I think this is really something that should be changed in cck, but I don't want to have this broken until or unless cck gets updated, so I'm going to re-write the module so that the date formatting is created in the field setting rather than the widget setting. You will then have to go to the field setup page for each field and re-set your format selections so they get saved in the field info. I'll also file a feature request against cck to send widget info to views since that is going to create problems for other fields, too.

KarenS’s picture

Status: Active » Fixed

I just committed an update to cvs with this change. After uploading the changed module, you will need to go to admin/node/types and pull each date field up to reset the date formatting. That will make the format a field value instead of a widget value. If you don't see the option to do that you may need to clear your cache.

After that views should work. Re-open if there are any problems.

RayZ’s picture

Confirmed working.

westphal’s picture

I confirm the fix as well. Thanks for your great work, Karen.

westphal’s picture

Status: Fixed » Closed (fixed)