Apparently, the default setting of the version that I have downloaded to one of my sites that uses ushahidi does not display the current reports *scratch head*.. so it causes temporary chaos.
Although the bug was reported already, hopefully the latest version will get it right. But for now, lets tweak a bit of the code for controllers->main.php
**comment out this loop at line 288
foreach ($query as $query_active)
and add this:
$active_startDate = strtotime(’0000-00-00′);
$today = getdate();
$active_month = $today["mon"];
$active_year = $today["year"];
$active_endDate = strtotime($active_year . “-” . $active_month .
“-” . date(‘t’, mktime(0,0,0,$active_month,1)).” 23:59:59″);
then update for controllers->json.php
line 226:
” AND i.incident_date >= ’0000-00-00′” : “”;
$filter .= ($end_date) ?
” AND i.incident_date <= '9999-99-99'" : "";
Line 85:
{
$start_date = $_GET['s'];
$where_text .= " AND incident.incident_date >= ’0000-00-00′”;
}
if (isset($_GET['e']) && !empty($_GET['e']))
{
$end_date = $_GET['e'];
$where_text .= ” AND incident.incident_date <= ’9999-99-99′”;
}
More info at:
http://forums.ushahidi.com/topic/disable-timeline-date-range-feature?replies=5#post-2904










