formatjs / dust-intl

Dust helpers for internationalization.
http://formatjs.io/dust/
Other
48 stars 11 forks source link

Timezone mismatch on the other side of the prime meridian #54

Open aks- opened 9 years ago

aks- commented 9 years ago

Error: expected 'oranges cost $40,000.00 (or €40,000.00) if ordered by January 24, 2014' to equal 'oranges cost $40,000.00 (or €40,000.00) if ordered by January 23, 2014'

This test failed with other few tests related to formatDate when I ran npm test on my side. I fixed the timezone to UTC to work it, the changes made by me made pass other tests on both the side of meridian but this

caridy commented 9 years ago

this is probably related to the Intl polyfill, which does not support TZ at the moment. More details here: https://github.com/andyearnshaw/Intl.js/issues/19