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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | date-issue-322649.patch | 801 bytes | Pedro Lozano |
Comments
Comment #1
Pedro Lozano commentedI think this fixes it but I don't know yet if it breaks anything else.
Comment #2
Pedro Lozano commentedComment #3
karens commentedThat's the right fix. This was fixed in the D5 version but got missed in D6. Thanks!
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.