From 520a56f7878fd7c3df62a66b1bf23182ce420458 Mon Sep 17 00:00:00 2001 From: Hirofumi Kosaka Date: Wed, 16 Dec 2015 19:37:32 +0900 Subject: [PATCH] had planned_downtimes_created API accept date with time for date_from/to params. --- pandora_console/include/functions_api.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index add47f4acc..418e96b188 100755 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -3929,11 +3929,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(