And I try to understand the timespan!
When I create a filter, I set it up for last helf hour, on the database it save the time and date of when I apply the save! So far not right, since this date will change of curse when I'm using the fitler.
So I go to flowview, and select my filter, then it take the date time that are in the database. Instead of applying the rule 'last half hour'
Event in the code it dosen't look right:
Code: Select all
if (!isset_request_var('predefined_timespan')) {
set_request_var('predefined_timespan', $q['timespan']);
if ($q['timespan'] == 0) {
set_request_var('date1', strtoupper($q['startdate']));
set_request_var('date2', strtoupper($q['enddate']));
} else {
$span = array();
get_timespan($span, time(), get_request_var('predefined_timespan'), read_user_setting('first_weekdayid'));
set_request_var('date1', $span['current_value_date1']);
set_request_var('date2', $span['current_value_date2']);
}
}
So this code is always :
Code: Select all
set_request_var('date1', strtoupper($q['startdate']));
set_request_var('date2', strtoupper($q['enddate']));