Skip to content
Snippets Groups Projects
Commit 5172e1aa authored by Anthony Borghi's avatar Anthony Borghi
Browse files

Merge branch 'bug/1-correctif-redmine-4162' into 'master'

Resolve "Correctif redmine 4162"

Closes #1

See merge request Development/vitis_apps/application/gtf!3
parents c4a0323f 055fff46
Branches
Tags
No related merge requests found
......@@ -179,8 +179,7 @@ class orderLib extends GtfLib{
function formatOrderEmail() {
// Calcule la date et heure de fin
list($iHours, $iMinutes, $iSeconds) = explode(':', $this->aFields['length_sec']);
$oLengthSec = new DateInterval('PT' . intval($iHours) . 'H' . intval($iMinutes) . 'M' . intval($iSeconds) . 'S');
$this->aFields['length_sec'] = $oLengthSec->format('%s');
$this->aFields['length_sec'] = (intval($iHours) * 3600) + (intval($iMinutes) * 60) + intval($iSeconds);
if (!empty($this->aFields['execution_date']) && !empty($this->aFields['length_sec']))
$this->aFields['process_date'] = date_add(date_create($this->aFields['execution_date']), new DateInterval('PT' . intval($this->aFields['length_sec']) . 'S'));
// Format des dates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment