Not sure if this is a Views or Date problem, I'm reporting it here since date is the only module affected by it, that I know of.

When you filter a view using the date filter with a granurality of 'second', the date module adds to the query something like this:

DATE_FORMAT(STR_TO_DATE(node_data_field_evento_fecha.field_evento_fecha_value, '%Y-%m-%%dT%T'), '%Y-%m-%%d\T%H:%i:%s') > '2005-01-02T00:00:00')

notice that in the last date formating string there is a %s to denote seconds. This %s is not intended to be a placeholder for the query, but views add arguments to the query after the filters, so the value of the first argument to the view is replaced in this place, instead of been replaced on the arguments part of the query.

So if you build a query with a date filter with granurality 'second', and you add add an argument (for any other field), the view will not work since the argument is replaced in the date's part of the query.

CommentFileSizeAuthor
#1 date-issue-322649.patch801 bytesPedro Lozano

Comments

Pedro Lozano’s picture

StatusFileSize
new801 bytes

I think this fixes it but I don't know yet if it breaks anything else.

Pedro Lozano’s picture

Status: Active » Needs review
karens’s picture

Status: Needs review » Fixed

That's the right fix. This was fixed in the D5 version but got missed in D6. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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