2013-11-26 KIKUCHI Koichiro <koichiro@rworks.jp>

* 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
This commit is contained in:
koichirok 2013-11-26 08:24:32 +00:00
parent 6995cea86c
commit e0c47a6c3e
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2013-11-26 KIKUCHI Koichiro <koichiro@rworks.jp>
* extensions/insert_data.php: Fixed a date time format used for
single data insertion.
2013-11-23 Junichi Satoh <junichi@rworks.jp>
* include/help/ja/help_visual_console_editor_editor_tab.php: Added

View File

@ -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++;