ForestAdmin / forest-express

🧱 Dependency of Express Lianas for Forest Admin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intercom: dates are all in 1970

ridem opened this issue Β· comments

commented

Expected behavior

Dates shown in "Intercom attributes" are expected to be correct.

Actual behavior

Dates look exactly like in your screenshot at https://docs.forestadmin.com/documentation/reference-guide/integrations#intercom - they're all in 1970.

Dates returned by the Intercom integration are returned as a Unix time, e.g.1613415151.
The Date constructor in JS is expecting a number of milliseconds since Unix epoch, e.g. 1613415151000

> new Date(1613415151)
1970-01-19T16:10:15.151Z

Context

  • intercom-client: 2.11.0, used with Intercom API 2.0
  • forest-express: 7.9.6
  • express: 4.17.1

hey @ridem, and sorry for the delayed response.

Thanks for the deep analysis of the issue, the fix was just merged πŸ‘

πŸŽ‰ This issue has been resolved in version 8.7.2 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

πŸŽ‰ This issue has been resolved in version 9.0.0-beta.7 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€