http://screencast.com/t/oFHeqJ0KYHk

I am trying to display only events with a date >= to now in a views block. When I save this setting all my dates vanish. The screen shot was taken on 6/25 so my event on 6/23 should not show up, but my event on 6/28 should. They both go away when I save date >= now.

Comments

agerson’s picture

I think it might be looking at the node creation date and not the custom date field I specified.

KarenS’s picture

Status: Active » Fixed

The overview page should show what date field the filter is using. You can change it to use a different date if you want. When you first set up a filter you get a list of all the date fields so you can choose which one to filter on. Once the filter is created, you'll see a little setting icon to the right of it that you can click on to change the field.

agerson’s picture

Status: Fixed » Active

Yes, that is how I understand it to work. I choose my custom date field and set it to show date is >= now and it displays nothing even though I think it should. Is it possible it is using the node date even when I choose my own date field?

thisportrait’s picture

I am having exactly the same problem. The Date field will not filter and return the desired entries, neither by using 'now', nor by using a YYYY-MM-DD date.

KarenS’s picture

Status: Active » Fixed

I've made lots of commits since this was reported, including some today. Try the latest -dev code -- today's cvs version or tomorrow's tarball.

If you still see problems after that you can reopen with more info. I can use an export of the view and the date field you used (the date field can be exported by the Content Copy module). If you can, a copy of the query created is helpful (the Devel module allows you to see the queries).

sprugman’s picture

Status: Fixed » Active

Just downloaded the latest tar ball*. I'm seeing two bugs with setting up date filters:

  1. If I enter "now" in the field, I get an error in the views admin saying "Invalid Date"
  2. If I expose the filter, I see three fields labeled "Date", "From Date" and "To Date". (Maybe this is a design choice, but I'd certainly want the option to only show one field, and I don't want all those labels.)

*Here's the first line of the changelog: //$Id: CHANGELOG.txt,v 1.1.8.77 2008/07/22 14:41:43 karens Exp $

(PHP 4.4.4)

KarenS’s picture

Status: Active » Fixed

That tarball doesn't have all the changes. You need at least today's tarball. You may need something more current than than (cvs or tomorrow's tarball).

I was making filter fixes last night and today, so it depends on which of them made it into the tarball, but the current version with all the changes is working.

sprugman’s picture

Oh. I just downloaded, but I guess I need to wait another day for the latest update. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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