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()

AttachmentSize
event_views_new_args.patch7.54 KB

#1

KarenS - June 24, 2006 - 15:06

I'd be glad to consider adding this in if we can get a review or two posted.

#2

dado - June 29, 2006 - 19:56

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.

AttachmentSize
event_views_new_args_notimezone.patch 7.21 KB
 
 

Drupal is a registered trademark of Dries Buytaert.