Hello everybody, I’m having some trouble with the Exercise Tracker(2022) task #8. My returned object seems to be exactly as the task requires it to be, but I still get an error while running the tests.
I have my code below, I really don’t know what I’m doing wrong, I’d appreciate it if I could get any help on it.
solution: boilerplate-project-exercisetracker - Replit
User Agent is:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36
Challenge: Exercise Tracker
Link to the challenge:
Look at the network tab when submitting. Check the response for the POST to exercises, they are all the same user.
So, after one day trying to find the reason for the error, I finally realized that the date included in my response was one day before the given date to be tested in the payload. This happens due to the different timezones, as I am placed in Rio, Brazil. So hard coding the date to be the expected one did the job. Now I don’t know if it is on purpose or if not considering this possibility is just an unhandled situation by the tests. Anyways, if I’m not supposed to expose this, someone just let me know so I can delete this message.