Your project can handle dates that can be successfully parsed by new Date(date_string)

When I say browser console, I am talking about the one you open with Ctrl + Shift + I.

  1. Go to: https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/timestamp-microservice
  2. Open the browser console:
  3. Paste your app link into the solution box
  4. Click the “I’ve completed this challenge” button
  5. Look for errors in the browser console

Hope this clarifies

this is the issue?

Yes.

This is the test code:

$.get(getUserInput('url') + '/api/05 October 2011').then(
    (data) => {
      assert(
        data.unix === 1317772800000 &&
          data.utc === 'Wed, 05 Oct 2011 00:00:00 GMT'
      );
    },
    (xhr) => {
      throw new Error(xhr.responseText);
    }
  );

Is your system (computer) time incorrect?

yes i think but not sure

Suggestion: Change your clock to be 5.5hrs ahead

i changed my clock to be 5.5 hrs ahead but the responce still same

Then, the last thing I can think of is you should host your app somewhere - you need to anyway, in order to be able to submit it.

I do not know if you have a provider in mind, but here are common options:

  • Replit
  • Glitch
  • CodeSandbox
  • Heroku

Hope this helps

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.