Revert "replace new Date() with Date.now()"

This reverts commit 32f5ea7cb790fc4b84fcce0f3000466c5d0d1b44.