Para que ser isso: ?useTimezone=true&serverTimezone=UTC",
public static Connection getConnection() throws SQLException {
DriverManager.registerDriver(new com.mysql.jdbc.Driver());
return DriverManager.getConnection("jdbc:mysql://localhost/todoList?useTimezone=true&serverTimezone=UTC",
"root", "root");
}