Merge branch '4820-planned_downtimes_created-no-se-almacena-correctamente' into 'develop'

Solved issue with date_from and dato_to missing time data

See merge request artica/pandorafms!2817
This commit is contained in:
Daniel Rodriguez 2019-10-17 10:16:07 +02:00
commit 3cb80e5d32
1 changed files with 2 additions and 3 deletions

View File

@ -6225,9 +6225,8 @@ function api_set_planned_downtimes_created($id, $thrash1, $other, $thrash3)
return;
}
$date_from = strtotime(html_entity_decode($other['data'][1]));
$date_to = strtotime(html_entity_decode($other['data'][2]));
$date_from = strtotime(html_entity_decode($other['data'][1].' '.$other['data'][11]));
$date_to = strtotime(html_entity_decode($other['data'][2].' '.$other['data'][12]));
$values = [];
$values['name'] = $id;
$values = [