Use Date.now() in the middlewares.