diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 48aa31527..05b379fef 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -34,6 +34,7 @@ - fix: "orig_dependant" JavaScript error in PM quick task display - fix: Tasks now start at zero duration in the PM system - fix: RSS for collaboration systems now properly shows in the head rather than the body + - fix: Gantt chart bars erroneously being shifted one day to the right 7.1.4 - Template variables in the main Survey Template were out of date in the diff --git a/lib/WebGUI/Asset/Wobject/ProjectManager.pm b/lib/WebGUI/Asset/Wobject/ProjectManager.pm index f92aebb5f..9ee5a7536 100644 --- a/lib/WebGUI/Asset/Wobject/ProjectManager.pm +++ b/lib/WebGUI/Asset/Wobject/ProjectManager.pm @@ -1623,12 +1623,7 @@ sub www_drawGanttChart { my $multiplier = $isMSIE ? 22 : 20; $hash->{'task.div.top'} = $divTop + ($multiplier*$taskCount); - #Interval includes current day if the start date is not the start of the month so add 1 - my $adder = 1; - if($dt->epochToSet($startMonth) eq $dt->epochToSet($startDate)) { - $adder = 0; - } - my $daysFromStart = ($dt->getDaysInInterval($startMonth,$startDate)+$adder); + my $daysFromStart = $dt->getDaysInInterval($startMonth,$startDate); #Add day part of predecessor if necessary #$eh->warn("Task $seq is currently $daysFromStart days from the first day on ".$dt->epochToHuman($startDate)); my $daysLeft = $daysFromStart;