API timestamp error for date properties


#1

Hi,

We are trying to create a deal through API's. We get the information from Harvest.

When we create a new deal we need to add a date property, but this wont work. We keep getting this error:

INVALID_DATE [fee_proposal_sent_date] => 1542240000 is at 20:24:0.0 UTC, not midnight!

But according to this website: https://www.epochconverter.com/timezones?q=1542240000&tz=UTC
It actually is at midnight...

We do not even need the timestamp, we just need the date properties.

Update: Added Miliseconds and now it works.


#3

Welcome, @JustinPeters!

Apologies for the delayed response. I'm glad that you were able to find the solution on your own!

For others viewing this topic, this documentation goes into a little more detail on the timestamp format HubSpot APIs accept.


#4