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 92763f40cd
commit 520a56f787
1 changed files with 4 additions and 5 deletions

View File

@ -3930,9 +3930,8 @@ function api_set_planned_downtimes_created ($id, $thrash1, $other, $thrash3) {
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;