Chaining Middleware Challenge

Tell us what’s happening:

Your project link(s)

solution: https://decisive-statuesque-jacket.glitch.me

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0.

Challenge: Chain Middleware to Create a Time Server

Link to the challenge:

So, I know my code is right, and also tried another way of expressing it and still fails the second part of this
test +/- 20 seconds from “now”

Code written:

app.get("/now", (req, res, next) => {
req.time = new Date().toString()
next()
}, (req, res) => {
res.send({time: req.time})
})

Your user agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
Other HTTP headers
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.5
Host: duckduckgo.com
TE: trailers
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0
DNT: 1
UPGRADE-INSECURE-REQUESTS: 1

There is a good number of tests that show problems with the challenge and the subsequent tests that run to pass it, obviously test 2.

https://decisive-statuesque-jacket.glitch.me/now
json output to prove it

Screenshot_2021-02-10 https decisive-statuesque-jacket glitch me