Skip to content
Snippets Groups Projects
Verified Commit 54b36f0a authored by Damien's avatar Damien
Browse files

FEAT #9284 Export data type date

parent 6839de60
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,12 @@ class ExportController
$csvContent[] = ExportController::getSignatureDates(['resId' => $resource['res_id']]);
}
} else {
$csvContent[] = $resource[$value['value']];
if (strpos($value['value'], 'date') !== false && !empty($resource[$value['value']])) {
$date = new \DateTime($resource[$value['value']]);
$csvContent[] = $date->format('d-m-Y H:i');
} else {
$csvContent[] = $resource[$value['value']];
}
}
}
fputcsv($file, $csvContent, $delimiter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment