had planned_downtimes_created API accept date with time for date_from/to params.

This commit is contained in:
Hirofumi Kosaka 2015-12-16 19:37:32 +09:00
parent 2fee69320e
commit 2c1fd62374
1 changed files with 4 additions and 5 deletions

View File

@ -3935,11 +3935,10 @@ function api_set_planned_downtimes_created ($id, $thrash1, $other, $thrash3) {
if (defined ('METACONSOLE')) {
return;
}
$date_from = strtotime($other['data'][1]);
$date_to = strtotime($other['data'][2]);
$date_from = strtotime(html_entity_decode($other['data'][1]));
$date_to = strtotime(html_entity_decode($other['data'][2]));
$values = array();
$values['name'] = $id;
$values = array(