This is what I did :
First, I created a page view with date argument. My view look like this testview/$arg.
Second, I created a post with a field date such as : 2008-03-05 11:00 (I used "Select list" to choose).
Third, I entered this : testview/2008-03-05T11:00:00--2008-03-05T11:00:00, and the result I got was an empty page. I wonder where my node was ?

After that, I used devel module and discovered that the query did not use the format like 2008-03-05T11:00:00 to compare. It used this 2008-03-05 11:00:00. I used phpMyadmin to test the query string with format like 2008-03-05T11:00:00 and it was correct.
Then, I changed the code in file date_views.inc line : 365,366 ,622,623 which are str_replace('T', ' ', $range[1])
I think it must be only $range[0] / $range[1] and do not need any replaces here.

I do a right thing , don't I ?

Comments

jacob.embree’s picture

Title: Is it a bug ? » Empty page
Project: Date View Feedback » Date
Version: 5.x-2.0-rc » 5.x-2.x-dev
Assigned: nadongtae » Unassigned
Issue summary: View changes
Status: Needs review » Fixed
istryker’s picture

Category: Bug report » Support request

Status: Fixed » Closed (fixed)

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