Back End Development and APIs Projects - Timestamp Microservice

Hi.

I believe there is a problem with the test " Your project can handle dates that can be successfully parsed by new Date(date_string)"

I’m indeed using new Date(date_string) in my route.

The output from my console after submitting:

image

It would be very nice if I could clear this project as I’m interested in the certification!

Thank you very much in advance.

solution (live site): https://node-app-damedina.herokuapp.com

code: boilerplate-project-timestamp - Replit

My browser information:

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

Challenge: Back End Development and APIs Projects - Timestamp Microservice

I believe the day number should be in two digits.

{"unix":1317772800000,"utc":"Wed, 5 Oct 2011 00:00:00 GMT"}

So 5 should be 05

I would suggest using toUTCString instead of your own date function.

Wow, that fixed the issue.

Thanks a lot!!!

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