Timestamp Microservice challenge tests works issue

Tell us what’s happening:
Hello. I completed the challenge. Visualy the app works correctly but the test -
A request to /api/1451001600000 should return { unix: 1451001600000, utc: "Fri, 25 Dec 2015 00:00:00 GMT" }
seems to be broken or i can’t catch the issue.
Please, take a look and point me on my error.

Your project link(s)

solution: https://replit.com/@olegsemko/boilerplate-project-timestamp

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Challenge: Timestamp Microservice

Link to the challenge:

It’s not the test. Log your responses and the one that fails looks like

{ utc: 'Fri, 25 Dec 2015 00:00:00 GMT', unix: '1451001600000' }

while the example from the test page looks like

{ unix: 1451001600000, utc: "Fri, 25 Dec 2015 00:00:00 GMT" }

The unix timestamps are different.

1 Like

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