andyearnshaw / Intl.js

Compatibility implementation of the ECMAScript Internationalization API (ECMA-402) for JavaScript -- UNMAINTAINED
Other
1.7k stars 215 forks source link

Format date with 2-digits doesn't work properly on IE9 and IE10 #105

Closed bcecchinato closed 9 years ago

bcecchinato commented 9 years ago

Hi there !

I'm using ember-intl on one of my project and found a small bug under IE10 and IE9. My hbs file is :

<p>{{format-date news.publicationBeginDate format="date-style"}}</p>

And my format.js file :

export default {
    'date-style': {
      day:  '2-digit',
      month:  '2-digit',
      year:  'numeric'
    }
};

I'm expecting to get a date like 01/01/2015, but when the first digit of day/month is 0, the rendered date is 1/1/2015.

Since version 1.0.0-rc-1, Chrome and IE11 are ok§. IE9 and IE10 are displaying the wrong date.

Regards,

caridy commented 9 years ago

this one should be easy to fix :), I hope!

caridy commented 9 years ago

you can now try intl@1.0.0-rc-4, should be fixed. feel free to reopen.

bcecchinato commented 9 years ago

Hi @caridy !

I havn't been able to test the version 1.0.0-rc-4 as it is not properly release :

bower pretender#0.1.0                       validate 0.1.0 against https://github.com/trek/pretender.git#0.1.0
bower intl#~1.0.0-rc-4                  ENORESTARGET No tag found that was able to satisfy ~1.0.0-rc-4

Additional error details:
Available versions: 1.0.0-rc-1, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0, 0.0.3, 0.0.2, 0.0.1

Can you make a proper release build ?