Subject: | problem with hour increment |
The problem seems to be in the Method: _writeHeaderHours()
of the Gantt:Header.pm
while($start <= $end){
`echo start $start >> /tmp/gantt`;
`echo end $end >> /tmp/gantt`;
# if day not already written
if((not $daysWritn[$start->day.$start->month]) and (($end->hour-$start->hour)>5)){
# if day has more than 6 hours on chart, list day of week
if(($start->hour <= 18) and ($end->hour >= 6)){
$me->_writeText(
getDay($start->wday),
$xval,
12);
$daysWritn[$start->day.$start->month] = 1;
}
}
`echo inwhile >> /tmp/gantt`;
# write each hour
$me->_writeRectangle(
$DAYSIZE,
$start->hour,
$xval,
$yval);
$me->_writeSwimLane($xval, $yval) if $me->{skin}->doSwimLanes();
`echo beforeincr $start>> /tmp/gantt`;
$start += "1h";
$xval += $DAYSIZE;
`echo afterincr $start>> /tmp/gantt`;
}
The problem is relly weired, with the following start and end date,
the hour is not incremented:
start 2005-03-27 01:00:00
end 2005-03-27 04:00:00
Debug before and after increment:
beforeincr 2005-03-27 01:00:00
afterincr 2005-03-27 01:00:00
I really like the charts, but I do not know what this problem is.