add new arguments: start/end time after/before
dado - June 24, 2006 - 11:52
| Project: | Event Views |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
howdy!
this patch has 4 new filters:
start time after
start time before
end time after
end time before
not 100% tested but works for me
Argument can be a timestamp or any date string parseable by function strtotime()
| Attachment | Size |
|---|---|
| event_views_new_args.patch | 7.54 KB |

#1
I'd be glad to consider adding this in if we can get a review or two posted.
#2
i checked the exact times that were being selected and i found it was selecting events whose start times were 4 hours after the time i passed in the argument (I am in Eastern Daylight time, which is GMT - 4 hours). I had been doing this, since the other event_views args functions were doing similar
$timezone = _views_get_timezone();...
$datetime = $datetime - $timezone;
but i now believe this was wrong. So this patch removes the offending timezone code, and i find the argiments are working down to the minute.