startTime & endTime when creating "MEETING" engagements aren't accurate
SOLVE
Based on this api doc, when creating a "MEETING" engagement, the startTime & endTime format should be:
// Integer; A Unix timestamp in milliseconds
When I give it 1568145600000 which should equate to Tue Sep 10 2019 20:00:00 UTC or Tue Sep 10 2019 16:00:00 Eastern daylight, I get 09/07/2019 7:57 PM instead.
Is it not expecting Unix timestamp in milliseconds?
You're right to say that the UNIX timestamp 1568145600000 should equate to Tue Sep 10 2019 20:00:00 UTC or Tue Sep 10 2019 16:00:00 Eastern daylight.
On my end, when using the Create an Engagement | Engagements API endpoint to create a MEETING engagement with the startDate as 1568145600000, I'm able to see that it is showing as GMT: Tuesday, 10 September 2019, 8:00:00 PM GMT just fine.
This is the post body that I posted across on this endpoint - /engagements/v1/engagements:
Note: My HubSpot portal timezone is GMT +8; to prevent confusion, Wednesday, 11 September 2019, 4:00:00 AM GMT+08:00 is equal to Tuesday, 10 September 2019, 8:00:00 PM GMT so it seems that the startTime got created just fine.
In this case, do you mind sharing with me your request post body and the HubSpot portal that you're creating the MEETING engagement on?
You're right to say that the UNIX timestamp 1568145600000 should equate to Tue Sep 10 2019 20:00:00 UTC or Tue Sep 10 2019 16:00:00 Eastern daylight.
On my end, when using the Create an Engagement | Engagements API endpoint to create a MEETING engagement with the startDate as 1568145600000, I'm able to see that it is showing as GMT: Tuesday, 10 September 2019, 8:00:00 PM GMT just fine.
This is the post body that I posted across on this endpoint - /engagements/v1/engagements:
Note: My HubSpot portal timezone is GMT +8; to prevent confusion, Wednesday, 11 September 2019, 4:00:00 AM GMT+08:00 is equal to Tuesday, 10 September 2019, 8:00:00 PM GMT so it seems that the startTime got created just fine.
In this case, do you mind sharing with me your request post body and the HubSpot portal that you're creating the MEETING engagement on?