-
Notifications
You must be signed in to change notification settings - Fork 215
I ran a simple test and is not returning the right data #39
Comments
hmm, something is messed up in the issue report @lwelti, make sure you use triple ` to enclose code. |
check again, i removed the script tags, but if this is really an issue we are in trouble. |
It looks like this affects all I didn't account for this, and the intl402 tests don't test for it either, so it got missed. I'll try and get it fixed this morning if I have a bit of free time. |
that only solves one issue, but is still wrong in some formats. Using Intl Object: returns: Using IntlPolyfill: returns: All the week formats, return the same value: lun, 8 de febrero de 2010 var options = {month: "long"}; returns: instead of: |
I did a simple test:
script src="../Intl.complete.js"
then I have:
var lang = "es-MX";
var date = new Date(Date.UTC(2010,1,9,3,0,0));
then I have:
var options = {weekday: "long", year: "numeric", month: "long", day: "numeric"};
document.write(new IntlPolyfill.DateTimeFormat(lang, options).format(date));
and no matter which format I am using it always returns:
"lun, 8 '{day}{weekday}' febrero '{day}{weekday}' 2010"
vs if I use Intl.DateTimeFormat returns:
"lunes 8 de febrero de 2010"
IntlPolyfill is not returning OK data
The text was updated successfully, but these errors were encountered: