# Cannot pass a single test in Timestamp Microservice

**URL:** <https://forum.freecodecamp.org/t/cannot-pass-a-single-test-in-timestamp-microservice/445116>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [February 8, 2021, 3:23pm UTC](https://forum.freecodecamp.org/t/cannot-pass-a-single-test-in-timestamp-microservice/445116 "2021-02-08T15:23:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BuiChiTrung](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/buichitrung/32/192285_2.png) [@BuiChiTrung](https://forum.freecodecamp.org/u/BuiChiTrung)\
**Post date:** [February 8, 2021, 3:23pm UTC](https://forum.freecodecamp.org/t/cannot-pass-a-single-test-in-timestamp-microservice/445116/1 "2021-02-08T15:23:10Z")

</div>

**Tell us what’s happening:**  
I can’t pass test on this project except for the first one. I have used my own code and the solution but neither of them work.

**Your code so far**  
[https://repl.it/@BuiChiTrung/timestamp#index.js](https://repl.it/@BuiChiTrung/timestamp#index.js)

**Your browser information:**  
Google Chrome 88.0.4324.96 (Official Build) (64-bit)

User Agent is: `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36`.

**Challenge:** Timestamp Microservice

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/back-end-development-and-apis/back-end-development-and-apis-projects/timestamp-microservice)**
>
> Learn to Code — For Free

Thanks a bunch!

---

<div class="post-metadata">

**Author:** ![dannyjamesfletcher](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dannyjamesfletcher/32/192569_2.png) [@dannyjamesfletcher](https://forum.freecodecamp.org/u/dannyjamesfletcher)\
**Post date:** [February 8, 2021, 9:45pm UTC](https://forum.freecodecamp.org/t/cannot-pass-a-single-test-in-timestamp-microservice/445116/2 "2021-02-08T21:45:32Z")

</div>

Here’s the output I get when I use your endpoint:

 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/d/c/dca0e2e134f0d47b0be40b0dcc028d12785372bb.png)

The `utc` field looks like it’s formatted wrong to me. In the test description it says it should be formatted as:

```auto
Thu, 01 Jan 1970 00:00:00 GMT

```

Hope that helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [August 10, 2021, 9:46am UTC](https://forum.freecodecamp.org/t/cannot-pass-a-single-test-in-timestamp-microservice/445116/3 "2021-08-10T09:46:05Z")

</div>

Closed on August 10, 2021, 9:46am UTC

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