Browse Source

Merge pull request 'staging upload 23-05-16' (#49) from staging into master

Reviewed-on: ordo/adw-backend#49
pull/3/head
ibnu 2 years ago
parent
commit
8b45a0e613
  1. 5
      app/Http/Controllers/ActivityController.php

5
app/Http/Controllers/ActivityController.php

@ -396,14 +396,13 @@ class ActivityController extends Controller
}
foreach ($data['activities'] as $i => $activity_row) {
$startDate = \DateTime::createFromFormat('d-m-y', $activity_row['start_date']);
$endDate = \DateTime::createFromFormat('d-m-y', $activity_row['end_date']);
$endDate = \DateTime::createFromFormat('d-m-y H:i:sO', $activity_row['end_date']);
$input['name'] = $activity_row['name'];
$input['proyek_id'] = $projectId;
$input['version_gantt_id'] = $data['ganttId'];
$input['parent_id'] = null;
$input['start_date'] = $startDate->format('Y-m-d');
$input['end_date'] = $endDate->format('Y-m-d');
$input['end_date'] = $endDate->format('Y-m-d H:i:sO');
$input['duration'] = $activity_row['duration'];
$input['bobot_planning'] = $activity_row['weight'];
$input['persentase_progress'] = 0;

Loading…
Cancel
Save