I am trying to solve the challenge APIs and Microservices Projects - Timestamp Microservice but when doing the tests 2 of them I can not pass them, the tests are
It should handle an empty date parameter, and return the current time in unix format
It should handle an empty date parameter, and return the current time in UTC format
I manage to pass all the others just those 2 are the ones I can’t pass this is the league of my code
When I enter your glitch project into the challenge, along with the repository in the package.json, it passes all of the tests. What exactly did you enter in the challenge page? And what browser are you using?
Very weird… I did that, and those 2 tests didn’t pass… Then, I went to your project page and entered a blank time, and it responded with the current time (like it’s supposed to). Then I went back and retested… and it passed all the tests. Try testing your project, then opening this in a new tab: https://practica1-timestamp-microservice.glitch.me/api/timestam
Then test again.
I have the same problem. Tried your solution but it didn’t work. It’s very frustrating, since this is the only thing I have left to get the Full Stack Cert. I’ve been at it by 2 days already. I thought this place was supposed to be great and instead is one of the buggiest things I’ve come across online. If you can give me any pointers, I’ll be very grateful.
@jsilvao hi, sorry to hear you are having trouble. If you go make a new issue in the forum, and post a link to your code, I will take a look at it for you.
I solved by adjusting my computer time and date settings. I had more than 20 seconds of from the real time, I also had to change the timezone to my actual timezone.
@jsilvao Why would the PC time and date settings have an effect on the API? Isn’t the API isolated by the browser? Or does the browser pull it’s time settings from the PC?