Hi,

I have a date CCK field with default set to 'blank' displaying in Views with exposed text filter with granularity set to 'year'.

Even though there is nothing in the filter, it defaults to this year, 2009. It seems to me that it simply assumes 'now' in the default (which I had there before), instead of 'blank'.

I found this in 6.x.-2.1 and also in latest dev.

Yes, I have cleared Views cache and all other Drupal cache, browser caches (tried in several browsers).

When looking at the Views query, there's always this bit (without anything in the date filter!):
AND (DATE_FORMAT(STR_TO_DATE(node_data_field_datepublished.field_datepublished_value, '%Y-%m-%dT%T'), '%Y') = '2009')

You can see the problem at http://www.youthforum.org/en/documents now (but I might have to disable the year filter soon if there is no resolution to the problem).

Thanks for any quick comments...

Comments

karens’s picture

Status: Active » Fixed

I can see no problem using the latest -dev code for both Date and Views so it should be fixed by now.

vacilando’s picture

Correct, it's working now. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -default, -date, -now

Automatically closed -- issue fixed for 2 weeks with no activity.