wazo-platform / wazo-js-sdk

Wazo's JavaScript Software Development Kit.
https://www.npmjs.com/package/@wazo/sdk
MIT License
36 stars 18 forks source link

[NES-2220] expiresAt valid in major browsers #748

Closed chartrandf closed 8 months ago

chartrandf commented 9 months ago

Summary of changes

Make expiresAt valid is major browsers. Currently when parsing utc_expires_at the output in Firefox or Safari is Invalid Date. Since we already have moment we should use it to parse API response to a Javascript date