An empty date parameter should return the current time in a JSON object with a utc key

I am stuck here. I am sharing link of my code.
// running tests
An empty date parameter should return the current time in a JSON object with a unix key

An empty date parameter should return the current time in a JSON object with a utc key
// tests completed

project

Welcome there,

When following the tests by submitting your URL without a date parameter, the response is:

utc: "Mon, 22 Nov 2021 21:14:18 GMT"

I submitted this at ~ 16:44 GMT. So, something is off there.

Hope this helps

Hi,
Thank you for your suggestion.
I am from India. So to match my system’s time , I have added +5:30 . I am not able to pass the test even when I remove +5:30 logic.

When I submit your project now, it passes all the tests.

For me somehow it is still giving error.

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