So this is my code to generate the current datetime for make an insertion in the google table jiql_registrations
Date fecha = new Date();
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
try {
Conn = ConexionGoogle.obtenerConexion();
Statement Stmt = Conn.createStatement();
Stmt.execute("insert or replace INTO registrations VALUES('" + user + "','"
+ identity + "','" + dateFormat.format(fecha) + "')");
if (Conn != null)
Conn.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
return "\t<update>false</update>";
}
return "\t<update>true</update>";
But when i look in the google dataviewer in the app dashboard i see the correct date but the time is set to 00:00:00
So if anyone can help me i will appreciate too much...