Timestamp Node.js project

Hello, everyone. I am working on the timestamp service. Although it seems to work correctly, freeCodeCamp won’t validate it for some reason. Here’s my Github repo:

You can also check the API itself:
https://boilerplate-project-timestamp.elpes.repl.co

Challenge: Timestamp Microservice

Link to the challenge:

Log the route inputs and responses and run the tests and you’ll get:

req.body: undefined
req.params: {"date":"1451001600000"}
req.query: {}
{ unix: NaN, utc: 'Invalid,  Date' }

req.body: undefined
req.params: {"date":"this-is-not-a-date"}
req.query: {}
{ unix: NaN, utc: 'Invalid,  Date' }

The first is not right and the second is not to spec.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.