Worng deal closeddate

mgivi
Member

When creating a new deal using the api, eventhough a correct date is sent, the deal is created with a wrong date.

I am passing this : 1578441600 

but the deal closed date is set to January 22, 1970

any ideas?

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Welcome, @mgivi.

 

Apologies for the delayed response.

 

You are passing a timestamp formatted in seconds, but HubSpot's APIs use timestamps formatted in milliseconds.

 

Try sending 1578441600000 (8 January 2020 at 12:00 AM).

Isaac Takushi

Associate Certification Manager

View solution in original post

1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Welcome, @mgivi.

 

Apologies for the delayed response.

 

You are passing a timestamp formatted in seconds, but HubSpot's APIs use timestamps formatted in milliseconds.

 

Try sending 1578441600000 (8 January 2020 at 12:00 AM).

Isaac Takushi

Associate Certification Manager