I'm a bit paranoid about being at airports early, and like to arrive 3 hours before an international flight. If it was me, I'd look at returning your rental car a bit earlier (before 7pm).
Having said that, if you leave DLR no later than 5pm anyway, you should be a bit earlier with your rental car anyway. I definitely wouldn't leave any later than 5pm.