Timestamp Microservice - Passing Invalid Date Test

Tell us what’s happening:

I am not passing one test which is rendering invalid date from the request parameter.
My outcome shows similar outcome with the model website, however, I guess I am missing some cases.

Your project link(s)

githubLink: GitHub - hwangs12/timestamp
solution: https://replit.com/@hwangs12/boilerplate-project-timestamp-1

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Challenge: Timestamp Microservice

Link to the challenge:

Request/Response log from browser console:

Request URL: https://boilerplate-project-timestamp-1.hwangs12.repl.co/api/this-is-not-a-date

Response: {"unix":null,"utc":"Invalid Date"}


If the input date string is invalid, the api returns an object having the structure { error : "Invalid Date" }

1 Like

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