For this challenge, even the solution proposed in the fcc hints only fulfills the first test. how do I succeed the second test?

Tell us what’s happening:

  req.time = new Date().toString();

app.get("/now", middleware, (req, res) => {
    time: req.time

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 6.0.1; SM-N910C) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36.

Challenge: undefined

Link to the challenge:

sorry, the first line of the code is const middleware = (req, res, nest) => {

Your code is OK. You could edit the first post to put all the code together though. I went through the same issues you are having with the second test. The thing is that the date and time in your pc, have to match the ones your code is returning. You also must have the same timezone.

1 Like