Skip to content
Snippets Groups Projects
Commit c2f39ccb authored by Charlie Darques's avatar Charlie Darques
Browse files

correction de bug : quand un utilisateur crée un thread, il le suit automatiquement

parent bc5ba794
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,8 @@ public class UserDAO {
try {
ps.setInt(1, user.getId());
ps.setInt(2, thread.getId());
ps.setString(3, "TO_DATE(" +LocalDate.now().toString() + ", 'YYYY/MM/DD')");
Date date = Date.valueOf(LocalDate.now());
ps.setDate(3, date);
ps.executeUpdate();
}
catch (SQLException sqle) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment