You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
I'm currently using Intl 1.2.5 to set up a locale for PhantomJS on an Angular2 project, and it seems the fr.js is wrong or incomplete.
Using this template :
<span class="hour">{{ time | date:'HH' }}</span>
<span> : </span>
<span class="minutes">{{ time | date:'mm' }}</span>
<span> : </span>
<span class="seconds">{{ time | date:'ss' }}</span>
Chrome and Firefox are displaying 10 : 39 : 37 which is correct.
PhantomJS with 'require('intl/locale-data/jsonp/en.js')' in karma-shim.js displays 10 : 10:39 AM : 39:37
PhantomJS with 'require('intl/locale-data/jsonp/fr.js')' in karma-shim.js displays 10 : 10:39 : 39:37
If i want to have the format i'm expecting with fr.js (which is my purpose), I just have to add these too following properties to date.formats.availableFormats :
"m": "mm",
"s": "ss",
I'm not sure if this is a good correction, but i'm pretty sure this is a bug.
The text was updated successfully, but these errors were encountered:
I'm currently using Intl 1.2.5 to set up a locale for PhantomJS on an Angular2 project, and it seems the fr.js is wrong or incomplete.
Using this template :
Chrome and Firefox are displaying 10 : 39 : 37 which is correct.
PhantomJS with 'require('intl/locale-data/jsonp/en.js')' in karma-shim.js displays 10 : 10:39 AM : 39:37
PhantomJS with 'require('intl/locale-data/jsonp/fr.js')' in karma-shim.js displays 10 : 10:39 : 39:37
If i want to have the format i'm expecting with fr.js (which is my purpose), I just have to add these too following properties to date.formats.availableFormats :
I'm not sure if this is a good correction, but i'm pretty sure this is a bug.
The text was updated successfully, but these errors were encountered: