|
|
@ -387,7 +387,8 @@ class ProjectController extends Controller |
|
|
|
if(isset($dataPayload['end_date'])){ |
|
|
|
if(isset($dataPayload['end_date'])){ |
|
|
|
$maxDate = $dataPayload['end_date']; |
|
|
|
$maxDate = $dataPayload['end_date']; |
|
|
|
$end = new \DateTime($maxDate); |
|
|
|
$end = new \DateTime($maxDate); |
|
|
|
$interval = \DateInterval::createFromDateString('1 day'); |
|
|
|
/* $interval = \DateInterval::createFromDateString('1 day'); */ // should be using this but its bugged |
|
|
|
|
|
|
|
$interval = new \DateInterval('P7D'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$maxDate = DB::table('assign_material_to_activity as ama') |
|
|
|
$maxDate = DB::table('assign_material_to_activity as ama') |
|
|
|
->where("ama.proyek_id", $keyGantt['proyek_id']) |
|
|
|
->where("ama.proyek_id", $keyGantt['proyek_id']) |
|
|
|