Do you need the string conversion? The database driver will handle everything if you take datetime value from your first query, and use it directly in your update like:
for row in strRsConsulta:
myTs = row[0]
...
argsSQL = [valor, myTs]
system.db.runPrepupdate(querySQL, argsSQL, cnxDB)