org.dojo.dijit.tests.i18n.time.html Maven / Gradle / Ivy
Test TextBox for Time
Dijit TextBox Globalization Test for Time
Press the following button to start all test after this page is loaded.
Before start this test, make sure the dojo/cldr/nls contains the data for "zh-cn", "fr-fr", "ja-jp", "ru-ru", "hi-in", "en-us" and "ar-eg". If not, convert these CLDR data and put them there.
Issues & Comments
Issue #1 Fixed
Currently Dojo do not support parsing for most "long" and "full" time format which have a timezone mark in it.
Issue #2 Fixed: added a "localeDigit" to the options
Strictly speaking, the data conversion must support non-European number characters in some locales like Arabic and Hindi.
For example, ICU formats a number data into Indic number characters by default in the Arabic locale.
However, currently Dojo does not support this feature (Dojo uses the default number conversion of the browser).
Issue #3 Fixed
This defect only occurs on the "zh-cn" locale. Dojo accepts "下午"(pm) in the textbox, but it automatically changes it to
"上午"(am) after the focus changed. The date value of the textbox is also changed.
The root cause of this issue is that the parser method's code assumes am/pm symbol always appears after the hour value.
But this is not true, for example, the pattern for "zh-cn" puts am/pm field before all the other fields.