diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d8f5969daa..c4015bc4cf 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2010-02-18 Miguel de Dios + + * godmode/agentes/configurar_agente.php: fix the date to save into DB. + 2010-02-18 Miguel de Dios * operation/gis_maps/render_view.php: change to use new tables. diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index 8bfc0516aa..d0b57fca08 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -693,7 +693,7 @@ if ($updateGIS) { "latitude" => $previusAgentGISData['stored_latitude'], "altitude" => $previusAgentGISData['stored_altitude'], "start_timestamp" => $previusAgentGISData['start_timestamp'], - "end_timestamp" => time(), + "end_timestamp" => date( 'Y-m-d H:i:s'), "description" => "Save by Pandora Console", "manual_placement" => $previusAgentGISData['manual_placement'], "number_of_packages" => $previusAgentGISData['number_of_packages'], @@ -707,7 +707,7 @@ if ($updateGIS) { "stored_longitude" => $lastLongitude, "stored_latitude" => $lastLatitude, "stored_altitude" => $lastAltitude, - "start_timestamp" => time(), + "start_timestamp" => date( 'Y-m-d H:i:s'), "manual_placement" => 1, "description" => "Update by Pandora Console"), array("tagente_id_agente" => $idAgente));