new Date() uses currentTimeMillis. This is a bug.

Can we add a unit test to prevent such a regression?