Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:

Failed: The date property of any object in the log array that is returned from GET /api/users/:_id/logs should be a string. Use the dateString format of the Date API.

before save the log , the date has been toDateString. And in the return logs , the date also correct. But why, this check not passed?

A ll return data like the below:
{
username: ‘fcc_test_17251233571’,
count: 1,
_id: ‘66d34b1dc95ee1e05f82ee85’,
log: [ { description: ‘test’, duration: 60, date:
‘Mon Jan 01 1990’ } ]
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0

Challenge Information:

Back End Development and APIs Projects - Exercise Tracker

We have to see your code. Post a repo with your code (or Replit).