Exercise Tracker | Test Issue [Solved]

Hi, I’ve been having issues with passing this one test in Exercise Tracker Project in APIs and Microservices.

I don’t know what issue is, I’ve tried inputting similar data in the example glitch app and mine, I’ve been at it for a few hours and i don’t know what’s wrong with it. Can anyone have a look and maybe let me know if I’ve overlooked something?

Test: I can add an exercise to any user by posting form data userId(_id), description, duration, and optionally date to /api/exercise/add. If no date supplied it will use current date. App will return the user object with the exercise fields added.

Project Info: https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/exercise-tracker

My Glitch App: https://simple-exercise-tracker-fcc.glitch.me/
FCC Example: https://fuschia-custard.glitch.me/

Thank you very much.

I got it. The date day instead of being like “Thu Jul 02 2020” was “Thu Jul 2 2020” :sweat_smile:

Used toDateString() to fix it.