NotionX / react-notion-x

Fast and accurate React renderer for Notion. TS batteries included. ⚡️
https://react-notion-x-demo.transitivebullsh.it
MIT License
4.75k stars 552 forks source link

EOI component shows invalid date in Firefox #489

Closed xarunoba closed 1 year ago

xarunoba commented 1 year ago

Description

External Object Instance shows an Invalid Date when rendered in Firefox due to how the string is formatted. Chromium browsers will have no issue as they have accept more formats.

Proposed Solution

This can either be fixed by either using a datetime library to properly format the date or to comply according to the ISO 8601 format (YYYY-MM-DDTHH:mm:ss.sssZ).

MDN - Date.parse() MDN - Invalid Date

Notion Test Page ID

067dd719a912471ea9a3ac10710e7fdf (Default Demo Test Page)