Browse Source

bugfix

pull/3/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
cef46de0fd
  1. 3
      app/Http/Controllers/ProjectController.php

3
app/Http/Controllers/ProjectController.php

@ -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'])

Loading…
Cancel
Save