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.
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.