prismicio / javascript-kit

Development kit for the Javascript language
https://developers.prismic.io
106 stars 69 forks source link

Document publicationDate properties invalid in Safari #148

Closed udyux closed 7 years ago

udyux commented 7 years ago

In Safari (tested on 10.0.3), firstPublicationDate and lastPublicationDate properties are returned as Invalid Date. See this StackOverflow question for a possible lead on fixing the issue.

I hoped a workaround could be parsing the string timestamp (first_publication_date) myself but it doesn't seem to be exposed on the response object.

Both properties work correctly in Chrome and Firefox.

srenault commented 7 years ago

We'll look at it ASAP. Thanks for reporting this.

arnaudlewis commented 7 years ago

Fixed in the latest release with this PR #151