From e0c47a6c3e50c10b7763b8ad0a0985b97ce7558e Mon Sep 17 00:00:00 2001 From: koichirok Date: Tue, 26 Nov 2013 08:24:32 +0000 Subject: [PATCH] 2013-11-26 KIKUCHI Koichiro * extensions/insert_data.php: Fixed a date time format used for single data insertion. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9127 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/extensions/insert_data.php | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 765e98c6df..db6ff0898b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-11-26 KIKUCHI Koichiro + + * extensions/insert_data.php: Fixed a date time format used for + single data insertion. + 2013-11-23 Junichi Satoh * include/help/ja/help_visual_console_editor_editor_tab.php: Added diff --git a/pandora_console/extensions/insert_data.php b/pandora_console/extensions/insert_data.php index a1491c95ea..e32fad1a48 100644 --- a/pandora_console/extensions/insert_data.php +++ b/pandora_console/extensions/insert_data.php @@ -86,11 +86,6 @@ function mainInsertData() { $agent = db_get_row_filter('tagente', array('nombre' => $id_agent)); $agentModule = db_get_row_filter('tagente_modulo', array('id_agente_modulo' => $id_agent_module)); - $date2 = str_replace('-', '/', $date); - $time2 = DATE(TIME_FORMAT, strtotime($time)); - - $date_xml = $date2 . ' ' . $time2; - $done = 0; $errors = 0; if ($csv !== false) { @@ -109,7 +104,7 @@ function mainInsertData() { } } else { - $result = createXMLData($agent, $agentModule, $date_xml, $data); + $result = createXMLData($agent, $agentModule, $date . ' ' . $time, $data); if ($result) { $done++;