Back End Development and APIs Projects - Timestamp Microservice

Tell us what’s happening:

I have completed the project and all tests are passing except test #5.

It of course works locally. I’m emitting some console logging trace and I can see the value being sent, but I’m have some difficulty figuring out why it is failing.

The result being sent back looks correct to me so I’m wondering if there is TZ issue maybe? Seems to me that sending back GMT date should do the trick.

Some trace:

Starting API timestamp with params{"date":"2016-12-25"}
Date Param: 2016-12-25
Sun, 25 Dec 2016 00:00:00 GMT
Response follows
{ unix: 1482624000000, utc: 'Sun, 25 Dec 2016 00:00:00 GMT' }

###Your project link(s)
https://gitpod.io/#snapshot/96ad209b-47ae-44a9-b4a7-5541470ae328

solution: https://3000-freecodecam-boilerplate-extscamx69w.ws-us117.gitpod.io

githubLink: GitHub - edgecase123/timemicroservice

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Challenge Information:

Back End Development and APIs Projects - Timestamp Microservice

Hi @leebo. Welcome to the forum.

Take a look at this Stack Overflow thread. It helped me know what date formats to test with.
https://stackoverflow.com/questions/51715259/what-are-valid-date-time-strings-in-javascript

Scroll down to “Examples…Valid Date Time Formats”

Hope that helps.