Create Note engagment epoch date incorrect

engagements

#1

I am creating a NOTE type engagement via the API, however the created note has a incorrect timestamp, I am using a datetime of 'April 11, 2018' , and the APi returns the correct timestamp back to me, however when looking at the UI, the date-time for the note is Jan 18 at 7:11 AM PST

as you can see here:

here is the api response

hubspot created engagement response : {
  "engagement": {
    "id": 953286053,
    "portalId": **REDACTED**,
    "active": true,
    "createdAt": 1526927325032,
    "lastUpdated": 1526927325032,
    "createdBy": 5714578,
    "modifiedBy": 5714578,
    "ownerId": 1,
    "type": "NOTE",
    "timestamp": 1523472960
  },
  "associations": {
    "contactIds": [],
    "companyIds": [],
    "dealIds": [
      293347343
    ],
    "ownerIds": [],
    "workflowIds": [],
    "ticketIds": [],
    "contentIds": []
  },
  "metadata": {
    "body": "TASK NAME: multi-perpetual meeting\nTASK DESCRIPTION: multi-perpetual meeting\nWednesday, April 11, 2018 10:56 AM\nDemo U.,Vat R.\nhttps://stg.izi.ai/completed/2578\n"
  }
}

#2

Hi @machinshin,

The value you're setting the timestamp field to is in seconds, not milliseconds. It should be 1523472960000.


#3

Thank you Derek, I obviously missed that!